Aug
21
No tags for this post.
< ?php
if ( is_single()) {
echo '
‘;
echo’
‘;echo’
‘;echo’
‘;
} else {
echo ‘
‘;
}
?>
To successfully write PHP code in the content of an article, the WYSIWYG editor needs to be turned off through the ‘Users > Your Profile’ menu. It is not enough to simply keep the WYSIWYG editor on, switch to the ‘Code’ tab of the editor in the ‘Write’ menu and save the article. This will render all contained PHP code permanently unuseful. (more…)