Forums

Widget Logic with Wordpress 2.82 & Thesis 1.51 (8 posts)

  1. qdpmedia
    Member
    Posted 4 months ago #

    I am using Widget Logic 0.46, Wordpress 2.82, and Thesis 1.51 with a static "Front" page and all posts on the "Blog" page.

    I want the main widgets (including Recent Posts, Recent Comments, Archives) to only appear on the "Blog" page but when I try to set these widgets to do this by using "is_page('blog')"or "is_page('pg id'), they simply disappear from the "Blog" page.

    Am I doing something wrong?
    Is this a bug?
    Is there a work around?

    Thank you,
    JW

  2. greenshady
    Member
    Posted 4 months ago #

    Try out is_home() instead.

  3. qdpmedia
    Member
    Posted 4 months ago #

    So simple and it works!

    Thank you so so much for your help greenshady!
    JW

  4. chrisnpg
    Member
    Posted 4 months ago #

    I got this to work for me is_page(43) but I want to add a few other pages to it. Only on select pages is what I need. I have done the following and failed.
    is_page(43,327)
    is_page(43 327)
    is_page(43),(327)
    is_page(43)(327)

    Can you add more than one in the logic or do you have to create a new widget for each page I want to put it on?

    I really hope you can add more then one in each widget.

    Thank you
    Chris

  5. alanft
    Member
    Posted 3 months ago #

    look at the last is_page() example in the codex's page on condtional tags

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

  6. dennisstevens
    Member
    Posted 2 months ago #

    is_home() solved my static page vs blog issue. I would like this to work on the tag page and the individual post page.

    So...
    http://www.dennisstevens.com/blog/
    works

    http://www.dennisstevens.com/2009/09/01/methods-practices-and-outcomes/
    doesn't

    http://www.dennisstevens.com/tag/project-management/
    doesn't

    I tried is_page('tag') but it didn't work.

    Thanks, this is a cool widget.

  7. alanft
    Member
    Posted 2 months ago #

    please read http://codex.wordpress.org/Conditional_Tags

    is_tag() will work for tag pages in general or specific tag pages

    is_single() will work for single posts in general or specific single posts

    then if you want a widget to appear on a combination of those you can OR them together

    is_tag(x) || is_single(y) -- will appear on tag page X or single post Y

  8. dennisstevens
    Member
    Posted 2 months ago #

    Thanks so much. That is possibly the coolest widget ever.

Reply

You must log in to post.

About this Topic