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

  1. triplelatte
    Posted 5 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?


  2. Funkphenomenon
    Posted 5 years ago #

    You could try the Widget Logic plugin.

  3. triplelatte
    Posted 5 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
    Posted 5 years ago #

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

    x= category number

    Sorry for overlooking this in the widget logic documentation.

  5. triplelatte
    Posted 5 years ago #


    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
    Posted 5 years ago #

    ok...got it.

    I needed to have the widget logic code:


    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