Jump to content
php.lv forumi

Php kods iekš wordpress


Wuu

Recommended Posts

Nespēju ievietot php kodu iekš wordpress! Wordpress automātiski pārtaisa pēdiņas saliek visādus html čarus un displejo html! Mēgīnāju pluginu ,mēgīnāju

 [pre] <pre> utt bez rezultāta! Nu kur tāds mēsls var būt.. Vēlētos lai attēlojas tāpat ka te forumā kad ieliec code tāgos.
Link to comment
Share on other sites

Uzliku WP-Syntax ,palika labāk, bet tik un tā piemēram

$news = '';

tiek pārveidots

$news = '''';

 

ar veco themu izskatās vispār šādi!

$news = '''''';

 

edit: Tas pats ar otru arī :(

Edited by Wuu
Link to comment
Share on other sites

Pievienojam .htaccess failam divas rindas

php_value magic_quotes_gpc 0
php_flag magic_quotes_runtime 0

 

Viss būs bumbās, neaizmirstam norādīt read only! Savādāk wordpress nomainīs uz oriģinālo!

Edited by Wuu
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...