• Hello,

    I created a page that only displays some posts according to their category, by creating a new template for this page. I would like that this page shows the full content of the posts. But I also would like that the page displaying all the posts shows only excerpts.

    If I replace ? the content ? by ? the excerpt ? in the content.php file of my child theme, every post displays only the excerpt, even the single post. So I added ” is_singular() ? the_content() : the_excerpt(); ? and it worked for the single post but I don’t know how to apply a similar rule to my new page template…

    Is it possible ? And in this case how to create a read more button for the excerpts?

    Thanks in advance for your help

Viewing 1 replies (of 1 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi, I would suggest you include the code from content.php in that new page template and edit the code to show the full content. That would be the easiest and least work.

Viewing 1 replies (of 1 total)
  • The topic ‘how to manage excerpt and full content of posts’ is closed to new replies.