Widget Logic
Widget Logic Broken in WP 3.8 (3 posts)

  1. Dave333
    Posted 2 years ago #

    Widgets no longer show on individual pages.

    The conditional tag is_page('page-title') no longer works.

    However, is_home() and is_single() do still work.

    Does anyone have any ideas on how to get the is_page('page-title') tag working again?


  2. alanft
    Plugin Author

    Posted 2 years ago #

    have you tried the fix suggested in the FAQ for is_page (and if that doesn't work, you should trace through the problem of is_page mentioned there)

  3. Dave333
    Posted 2 years ago #

    It simply points to the Codex, which gives only a very brief mention:

    Due to certain global variables being overwritten during The Loop is_page() will not work. In order to use it after The Loop you must call wp_reset_query() after The Loop.

    That doesn't really help me unfortunately. I haven't changed any code in my theme, the only change I made is to upgrade to WordPress 3.8.

    Does this mean that WordPress 3.8 changed the way global variables are handled?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic