Answer the question
In order to leave comments, you need to log in
How to show the post announcement on the main page?
Hello.
WordPress Twenty Fifteen Theme:
I can't announce a post on the main and headings.
By default, the topic is configured as follows: all posts are shown in full.
I changed the value of the_content to the_excerpt in the content.php file, almost done, but when you go to the post page, everything remains the same - “read more”.
Answer the question
In order to leave comments, you need to log in
It is possible like this:
if ( is_single() ) {
the_content();
} else {
the_excerpt();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question