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

  1. lebleu29
    Posted 3 years 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.


  2. Bill Erickson
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic