Blog posts and the blog index page detected as the same
-
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 conditionalis_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?
Thanks!
- The topic ‘Blog posts and the blog index page detected as the same’ is closed to new replies.