WordPress.org

Ready to get started?Download WordPress

Forums

Displaying Title, Excerpt, Read More from a Page (4 posts)

  1. seo.chris
    Member
    Posted 1 year ago #

    Greetings all,

    I'm very new to php, so I don't know how the code would look like. But my objective is to display the 'Title', 'Excerpt', and 'Read more' (text linking to page) from a 'Page' that's created, instead of a 'Post'.

    Any help would be much appreciated.

    Thanks

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Please post a site link and we can discuss these issues with a NEW user who knows what: 'Title', 'Excerpt', and 'Read more' are...

  3. I'm not sure if you can do that and it will depend on your theme, but in your page.php look for <?php the_content(); ?> and change it to <?php the_excerpt(); ?> and see what happens.

    I'm really not sure if it will work though. Excerpts are usually not used on pages.

  4. rohanpawale
    Member
    Posted 1 year ago #

    @Christine

    You are right. That might not work for pages. A workaround would be to create a blog post and opt for the 'no sidebar' template so it looks like a page but works like a post.

Topic Closed

This topic has been closed to new replies.

About this Topic