Blog posts and the blog index page detected as the same (1 post)

  1. CyberAP
    Posted 4 years ago #

    I want to output special code only when the blog page itself is in the loop. I use front page and blog page, already set in settings.
    The problem is that my posts also count as a blog index page if I try a conditional is_home();. I tried to use conditionals like this 'is_page(145);' AND !'is_page_template("template-blog.php");', but that gave no result.
    Why does it happen? Is there any way to select blog index page?

Topic Closed

This topic has been closed to new replies.

About this Topic