Forums

[Plugin: Widget Logic] Vanishing text widgets (graphics) (5 posts)

  1. dblast
    Member
    Posted 11 months ago #

    Hi this is strange it was working (I think) and now its not. I have a graphic (Text box) displayed in the upper right corner above my menu. The idea is to have the same graphic in the corner as they click through the various lessons (posts) in the category the same graphic is in the corner

    (is_page('35')|| is_page('112') ||is_page('193') ||is_category(7))

    When they go to another course (category) a different graphic is shown and as they go through the posts in that category that graphic is shown.

    Well suddenly I loose the graphic. It's on the first post in the category but then when I click through the others it is gone.

    http://www.warrior-scholar.com/wordpress

    Click on courses/ meditation the first page will have the graphic the next it will be gone. Also courses/kigong same thing.

    It's driving me crazy!

    Help

    Dan

  2. alanft
    Member
    Posted 11 months ago #

    the first link is to the category, but links to subsequent lessons are to single posts within that category so you want

    is_category(7) for the main category page, but
    in_category(7) for the single posts within that category

  3. dblast
    Member
    Posted 11 months ago #

    Update, I deactivated everything and left widget logic on and the problem persists. I then deactivated widget logic and all the graphics appeared (on top of one another in a mess) So somehow widget logic is telling a text (graphic) widget not to appear even though I set the conditions for it to appear.

    Help!

  4. dblast
    Member
    Posted 11 months ago #

    O.K thanks. I thought just the statement is_category would include everything in that category. Is there an easier way to do this. I mean just include an entire category. It seems to be a lot of work everytime I post I have to go into the widget and add a line.

    Man this drove me crazy.

    Thanks

    Awesome plugin.

  5. alanft
    Member
    Posted 11 months ago #

    WP treats single posts and category pages as separate things. you have an unusual setup there in that your category page just shows the most recent post in that category.

Reply

You must log in to post.

About this Topic