WordPress.org

Ready to get started?Download WordPress

Forums

is there a is_blog()??? (3 posts)

  1. pt0608
    Member
    Posted 7 years ago #

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

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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""..

  3. cosmigo
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.