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

  1. robertallen
    Posted 2 years 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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHP Code for posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.