WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] conditional tag for posts page in Widget Logic

[Resolved] conditional tag for posts page in Widget Logic

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Solved the problem.

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

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

    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()

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] conditional tag for posts page in Widget Logic’ is closed to new replies.