WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Dave333
    Member
    Posted 3 months 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?

    http://wordpress.org/plugins/widget-logic/

  2. alanft
    Member
    Plugin Author

    Posted 3 months 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
    Member
    Posted 3 months 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?

Reply

You must log in to post.

About this Plugin

About this Topic