Can’t add php script in page editor
-
How do you add a php code snippet to the html of a page? Everytime I click on “edit HTML” the new window pops up with the HTML code and I insert my php code. However, after saving, it deletes all the php. Is there something I’m missing?
-
You can’t if you have a wordpress.com blog as I explained in this thread https://en.forums.wordpress.com/topic.php?id=14569
Wordpress.com is a wp-MU multiuser blogging platform and we cannot access our edit our underlying php files.If you have downloaded software from wordpress.org which is different from wordpress.com software then you are in the wrong forum go here -> http://wordpress.org/support
-
not sure I quite understand the topic you posted, my theme works fine, it’s just trying to use php in the manage/pages tab
-
If you wanna post examples of .php code, I’d suggest to use the ‘code’ view and then use <pre> tags:
<pre> <php? echo "Hello World!"; ?> </pre>HTH
-
-
-
-
- The topic ‘Can’t add php script in page editor’ is closed to new replies.