Support » Plugin: Display Posts Shortcode » How to display one full post

  • Resolved lebleu29

    (@lebleu29)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    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”]

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display one full post’ is closed to new replies.