WordPress.org

Forums

Widget Logic
[resolved] Widget logic is not working with custom page templates (3 posts)

  1. clinton4
    Member
    Posted 3 years ago #

    Hi,

    I use custom page templates on some pages, and the is_page() is not working on those pages. Why is this? And how can i resolve this?

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

  2. alanft
    Member
    Plugin Author

    Posted 3 years ago #

    is_page works fine, but take care of the issue mentioned on

    http://codex.wordpress.org/Function_Reference/is_page#Cannot_Be_Used_Inside_The_Loop

    re cannot be used inside (or after) the Loop. if your theme calls the sidebar after the loop, you will have this problem. try the 'wp_reset_query fix' option at the foot of the widget options page

  3. clinton4
    Member
    Posted 3 years ago #

    Thanks, that solved the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic