WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Need widget to show on post page but not others... (6 posts)

  1. triplelatte
    Member
    Posted 4 years ago #

    Here is the site...johnstreitteam.com

    On the News page (which is the blog post page) I want a widget to appear but only on that page...currently the widget showing is on all pages with the default page template but I need that widget as well as a text widget so I can place an image on just that page. Any ideas?

    Thanks!

  2. Funkphenomenon
    Member
    Posted 4 years ago #

    You could try the Widget Logic plugin.

  3. triplelatte
    Member
    Posted 4 years ago #

    I am already using that and it is working great.

    My problem comes when I have the news page set up to display posts. If I don't have the News page set up for posts, the widget I want shows on the page I want, but if I do, it does not show the widget even though I have it set up that way with Widget Logic.

    Any other ideas...again, the site is at:http://www.johnstreitteam.com

  4. triplelatte
    Member
    Posted 4 years ago #

    ok...had not seen the category widget code...had to add the following widget-logic code to the News page:

    !is_category(array(x))
    x= category number

    Sorry for overlooking this in the widget logic documentation.

  5. triplelatte
    Member
    Posted 4 years ago #

    wait!

    Now I have a different issue...the widget is showing up on all pages as well as the category except for the sep page template that has no sidebar.

    Any ideas on how to exclude this widget from all pages...and only show up in a certain post category?

  6. triplelatte
    Member
    Posted 4 years ago #

    ok...got it.

    I needed to have the widget logic code:

    is_home()

    because that is where I have the posts showing which is also the News "page".

    Thanks again...

Topic Closed

This topic has been closed to new replies.

About this Topic