• Hello. I am trying to have my posts display short version on a post page.

    I am using twentyfourteen template
    I set my posts to display on a custom page, not in home page.
    I went to wp-content >>> themes >>> twentyfourteen >>> content.php
    and replaced the_content with the_excerpt.

    Now my custom posts page displays short versions of the posts, but there is no link to the full version of the post.

    I do not want to add “read more” manually to each post
    I do not want to add excerpt manually to each post

    According to codex replacing the_content with the_excerpt will automatically display first 55 words of the post. It does but there is no “read more” or anything else to the full post in the end.

    Please advise.

    Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Do not edit the Twenty Fourteen theme. It is the current default WordPress theme and having access to an original, unedited, copy of the theme is vital in many situations. First create a child theme for your changes. Or install a custom CSS plugin.

    Thread Starter serhii.css

    (@serhiicss)

    I am using a child theme, but I have no content.php in the child theme folder. Should I create one?

    Still your reply does not answer the original question. Do you have any ideas why short posts do not display the link to the rest of the post?

    Thanks

    Yes – copy the parent’s content.php file into the child theme and edit it to your heart’s content. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Replacing the_content to the_excerpt() for short posts.’ is closed to new replies.