Answer the question
In order to leave comments, you need to log in
Why doesn't hiding is_home files work?
There is a site, you need to display the text on the main page, but not on other pages.
Wrote the code
<?php
if( is_home() && !is_paged() )
echo "This is the home page of a blog post";
else
echo "This is not the main blog post page";
?>
Answer the question
In order to leave comments, you need to log in
You need to write after the loop,
wp_reset_query();
here is an example https://codex.wordpress.org/Function_Reference/wp_...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question