WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] How to display one full post (3 posts)

  1. lebleu29
    Member
    Posted 1 year ago #

    Trying to display a full post on my homepage.

    Here is the code I came across on the forum:

    [display_posts include_content="true"]

    If the id of the post I want to display is 44, how do I alter the code?

    Also, instead of id'ing a post each time, is there a way to default always to the most recent blog post in the shortcode?

    Thank you.

    http://wordpress.org/extend/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    By default the shortcode displays the top 10 most recent posts. You can limit this to the most recent like this:

    [display-posts posts_per_page="1" include_content="true"]

  3. nikjvale
    Member
    Posted 1 year ago #

    I added a parameter 'full_first_post' which if true shows the content for the first post, and then just the titles for the remaining posts - http://www.mini650pacificchallenge.com/sailors/usa806/#Audio

    Perhaps a more useful modification would be to have number instead of a bool making it possible to show the contents of the first X posts.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic