Support » Fixing WordPress » Problems with is_page()

  • Hi, I have this code:

    <?php if (is_page('2')) { ?>
          <h3>Title</h3>
          <p>Text</p>
    
     <?php } ?>

    But it doesn’t work. Any solution?

Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Problems with is_page()’ is closed to new replies.