I am new to WP and I am not having any success inserting some php in a few posts and pages.
I have followed these steps:
1.Signed on as Administrator
2.Added and activated EXEC-Php and Deactivate Visual Editor plugins.
3.Created a new blank page
4.Disabled the Visual Editor on the new page: Custom Fields → deactivate_visual_editor = true
5.Disabled tag balancing in Settings → Write.
6.Assumed, as administrator I have “unfiltered html” capability, since I do not see how to activate this feature.
7.Assumed, as administrator I have “exec php” capability.
8.In the Editor (with no Visual or HTML tabs), type in:
<?php echo "This is the Exec-PHP 'Hello World'"; ?>
The Preview shows:
<?php echo "This is the Exec-PHP 'Hello World'"; ?>
I then modified .../plugins/exec-php/includes/runtime.php by inserting:
if(strpos($content,'< ?php ')!==FALSE)
{
$content=str_replace('< ?php','<?php',$content);
}
..at the start of “function filter_user_content($content)” right after “global $post;”, as suggested above, with comments claiming miraculous results.
But, no miracle. The page preview still shows:
<?php echo "This is the Exec-PHP 'Hello World'"; ?>
I have a feeling I am missing something obvious. Can someone point it out to me?