WordPress.org

Ready to get started?Download WordPress

Forums

PHP Code for posts
Conditional Tags not working. (1 post)

  1. robertallen
    Member
    Posted 1 year ago #

    I was trying to make a PHP Snippet to hide something that's listed on 2 pages, and I wanted to hide it on another page...but it's not working.

    <?php if(!is_page(9)) { ?>

    was in one php code snippet

    <?php } else { }; ?>

    was in another code snippet.

    However they display syntax errors. I've used this code dozens of times, and there's nothing wrong with the php code, but it doesn't work with this plugin. How do I make them work?

    http://wordpress.org/extend/plugins/php-code-for-posts/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.