WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] conditional tag for posts page in Widget Logic (4 posts)

  1. cdragin
    Member
    Posted 4 years ago #

    I am having trouble getting widgets to show up on my blog page (and only my blog page) using the Widget Logic plug-in. I have a static front page called "home" and the post page is called "blog".

    In Widget Logic, I would think the tag to enter for a widget to appear only on the blog page would be "is_page('blog') but that doesn't work. What is the correct conditional tag for the posts page?

  2. cdragin
    Member
    Posted 4 years ago #

    Solved the problem.

    I had to set home to is_front_page(), then is_home() worked to display widgets on the blog page.

  3. K-Fella
    Member
    Posted 4 years ago #

    I'm having this same problem. Can you explain your solution? I don't understand what you mean.

  4. beveraii
    Member
    Posted 4 years ago #

    I've been able to get is_home() working to conditionally display a widget sidebar but it doesn't seem to work to hide other elements...ie. !is_home()

Topic Closed

This topic has been closed to new replies.

About this Topic