WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Widget Logic just plain does not work (7 posts)

  1. sillynewbie
    Member
    Posted 1 year ago #

    Trying to make use of widget logic and it seems like it should be the ideal solution but so far it is not. I checked the wp reset query box and tried all the different load options and no dice. If there is a widget logic statement entered into the widget, no widget shows at all.

    Any thoughts on this?

    Also, If I were to try to enter that wp reset query code direct into the sidebar, could that in any way take down my site?

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

  2. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    what widget logic statements have you tried that make the widget always disappear? try these and see what happens:

    (should always keep the widget visible)
    true
    (1+1==2)

    (should always make it vanish)
    false
    (1+1==3)

  3. Karenxxx
    Member
    Posted 1 year ago #

    What should I type in the widget logic box on the widgets page for it to be displayed on a specific page?

    The URL of the specific page is http://carrotsandclaret.com/about-town/

  4. mkolber
    Member
    Posted 1 year ago #

    I'm a new WordPress user and am having the same issue.

    I am using the Responsive theme. Everything is standard, no customization. I would like the Categories widget to appear only on my blog page sidebar (slug is "blog"). It does not appear to be working. Here's the steps I can repeat to get the same result:

    1. Drag Categories widget to Main Sidebar.
    2. Leave Widget Logic text box blank.
    3. Result: View site and refresh = Categories appear on all pages with sidebar.
    4. Enter is_page('blog') in Widget Logic text box.
    5. Result: View site and refresh = Categories appear on no pages.
    6. Remove is_page('blog') in Widget Logic text box.
    7. Result: View site and refresh = Categories appear on all pages.

    alanft, I tried your true-false test. That works.

  5. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    @mkolber, if that page is your main page the is_page probably won't work, you may need one of these

    http://codex.wordpress.org/Conditional_Tags#The_Main_Page

    (note also the note re is_page in the FAQ http://wordpress.org/plugins/widget-logic/faq/ in case that's not it.)

  6. mkolber
    Member
    Posted 1 year ago #

    @alanft, that was it. My front page is static and the 'blog' page is the main page with timed posts. I changed it to is_home() | is_page('blog') (the "or" just in case) and it works perfectly.

    Thank you!

  7. marty84
    Member
    Posted 1 year ago #

    My widget logic not working. If the active site is my white, blank! Why?
    :((((

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.