• I have set up my home page as a static page using a plugin, and my blog is located on a different “Page”.

    I want a different layout for the side bar for Home, Blog and Normal pages. To detect home, I can use is_home(), likewise with is_page(). But is there a way to detect the blog page?? Like is_blog() or something??

    Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    is_page('Blog') perhaps? It depends on just what you mean by “set up my home page as a static page using a plugin, and my blog is located on a different “Page”“..

    I got the same problem because the blog is not a page.

    Assuming that your blog has a category (like “blog”), you can use is_category('blog'), which worked for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘is there a is_blog()???’ is closed to new replies.