• I was working in my site, which has an abundance of if(is_page()) conditionals in it, and all of a sudden, they stopped working. completely. across the whole site. all i did was add in a bit of code on another page calling in a custom post type. anyone ever run into this before?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter yondershore

    (@yondershore)

    bump. Still trying to find out an answer to this… thanks.

    hmmm… maybe it’s because you fail to add a space in it… you said… you added if(is_page())

    well in reality it should be, if (is_page()) =)

    the spacing should have no influence;

    could be a custom query somewhere in the code before the conditional statements;
    try wp_reset_query(); direct before the if(is_page'slug')) code.

    have you tried to deactivate all plugins to see if that makes any difference?

    an example of one of the templates with your conditionals might also help to get some ideas – please use the pastebin for this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conditional if(is_page('page-slug')) suddenly not working’ is closed to new replies.