Create List Posts with the Display Posts Shortcode

question marks

In Use the Display Posts Shortcode to Effectively Feature Content I introduced two ideas.  The first idea was using the display posts shortcode on static pages to create index pages. The second idea was creating list posts as another way of featuring older content especially pillar posts AKA evergreen content.

In this post I’m sharing some examples of my experimentation with the using different variations of the display post shortcode and the results the shortcodes produced. 

I have made images of the display post  shortcodes I used in the examples below because the code would execute rather than displaying if I have not done that.

My first experiment with making a list post was to create an unordered (bullet) list of posts assigned to a specific category which is “list posts”. Note: Options are ul for unordered lists (default), ol for ordered lists, or div for divs.

In the first example below I used display post shortcode to display the default number (10) of posts (title only) under the “list-posts” tag. Here’s the code I used:

displaypostsshortcodea

This shortcode could be used in a text widget and displayed in a sidebar or footer area for widgets.

My second experiment with making a list post by using the display posts shortcode was to create an unordered (bullet) list of posts assigned to a specific category  ie: list posts as well. However, I decided although an unordered list would suit in some cases and a date would not be required, in other cases an ordered list and inclusion of the publication date would be a better choice.

In the second example below I used display post shortcode to display posts the default number (10) of posts (title only) under the “list-posts” category, in an ordered list and include the publication date. Here’s the code I used:

displaypostsshortcodeb

  1. Branding on the Blog and Beyond the Blog (4/10/2014)
  2. 9 Guides for Beginning Your New Blog (3/12/2014)
  3. Better Blogging by the Numbers (11/30/2013)
  4. 12 Time Management Tips for Top Blogging Performance (11/4/2013)
  5. 7 Reasons Why I Like WordPress.com Hosting (10/30/2013)
  6. 15 Plagiarism Detection Tools for Bloggers and Writers (10/24/2013)
  7. Top 10 Beginner Blogger Blunders (10/7/2013)
  8. Create List Posts with the Display Posts Shortcode (9/18/2013)
  9. 8 Hot WordPress.com Widget Tips (8/2/2013)
  10. 7 Basic Blogging Dos and Don’ts (2/19/2013)

This shortcode could also be be used in a text widget and displayed in a sidebar or footer area for widgets but including the date may be a bit too much data.

My third experiment with making a list post by using the display posts shortcode was an expansion aimed to include both an excerpt and the date of publication.

In the third example below I used display post shortcode to display the default number (10) under the “list-posts” category, in an ordered (numbered) list, and include an excerpt from each post and the publication date. Here’s the code I used:

displaypostsshortcodec

  1. Branding on the Blog and Beyond the Blog (4/10/2014) - If you are a blogger who is confused about brands and branding you aren’t alone. And if you think “branding”  relates only to those who use their blogs to market products or services then think again.  In terms of your … Continue reading
  2. 9 Guides for Beginning Your New Blog (3/12/2014) - Creating a blog is an exciting process but do be sure that you think before you act. Your new blog’s URL, blog title and tagline ought to contain memorable keywords that define your new blog’s brand and make the URL … Continue reading
  3. Better Blogging by the Numbers (11/30/2013) - Want to find blogging tips, tools and tutorials in this blog fast? This index of links  to blogging tips articles in list post format that itemize ways to build a better blog, become a better blogger and promote effectively may help you … Continue reading
  4. 12 Time Management Tips for Top Blogging Performance (11/4/2013) - Scheduling enough time for creating original content, promoting it, answering comments, reading and leaving comments on other blogs is not an easy feat. Few bloggers I know are able to blog full time. They have active offline lives to live … Continue reading
  5. 7 Reasons Why I Like WordPress.com Hosting (10/30/2013) - WordPress.com is not only a great place to start blogging but it may even be your last stop. When you self host a WordPress.org install you are on your own. Managing your own install isn’t a cake walk. The learning … Continue reading
  6. 15 Plagiarism Detection Tools for Bloggers and Writers (10/24/2013) - There’s no difference between copyright law in cyberspace and print media; the same law applies both online and offline. You don’t have to remain a silent victim of make money blogger rip off artists like these two. You can check … Continue reading
  7. Top 10 Beginner Blogger Blunders (10/7/2013) - No matter how skilled a writer you may be, writing is not blogging. There’s a steep learning curve when it comes to learning how to write for the internet and attract a readership to your blog. There’s a lot of … Continue reading
  8. Create List Posts with the Display Posts Shortcode (9/18/2013) - In Use the Display Posts Shortcode to Effectively Feature Content I introduced two ideas.  The first idea was using the display posts shortcode on static pages to create index pages. The second idea was creating list posts as another way of featuring older … Continue reading
  9. 8 Hot WordPress.com Widget Tips (8/2/2013) - All WordPress.com themes are widget-activated. This is the main link to all the available widgets that WordPress.com provides – Widgets & Sidebars.  Clicking links on that page for individual widgets will get you to specific descriptions and instructions for each … Continue reading
  10. 7 Basic Blogging Dos and Don’ts (2/19/2013) - Successful bloggers are aware of what not to do when creating and publishing posts but if you are new to blogging you may not be in the know.  Here are some basic do’s and don’ts. Do update your site regularly. … Continue reading

This shortcode could also be be used in a text widget and displayed in a sidebar or footer area for widgets but  I would reduce the number of posts displayed to under five.

My fourth experiment was simply aimed to display more posts assigned to the list posts category.

In the fourth example I used display post shortcode to display 20 posts under the “list-posts” category, in an ordered (numbered) list, and include an excerpt from each post and the publication date. Here’s the code I used:

displaypostsshortcodedThe results of this fourth experiment is my next article Create a Featured Posts Page with the Display Posts Shortcode which will be published tomorrow.

19 thoughts on “Create List Posts with the Display Posts Shortcode

  1. Hello timethief. I need a little help. I am trying to make up a local news website. And I am using display posts shortcode. I want to limit my posts to 5 per page, and the rest of the posts should go to the next page. And these posts are the recent ones. So whenever I make a new post, the list updates, and the old ones are supposed to go to the next page. Do you know if I can do this with display posts shortcode? If I can, then how?

    Thank you. :)

  2. Hiya timethief,

    Does the short code work for self-hosted site on wordpress.org? Just asking as the shortcode does not seem to work for me in the text widget on the sidebar. Thanks!

  3. Pingback: Five Reasons Pillar Posts are good for your blog | Love versus Goliath : A Partner Visa Journey

  4. Thank you for this. I think I “get” it now. It means I can have a title of “learn to crochet” on the side bar of my front page which when you click you get a list of all posts dedicated to learning crochet? Thanks for your patience. :)

  5. Pingback: Create a Featured Posts Page with the Display Posts Shortcode | one cool site

  6. Gosh, I’m afraid this is beyond me. Wish I knew more, but I’m sorry to say, I’m too ignorant to follow. Love the ideas you’re introducing, however.

    Hugs from Ecuador,
    Kathy

    • Hi Kathy,
      It’s not beyond you and please let me explain why. The software does it all for you. Suppose you assigned a category or a tag to all your posts about moving to South America with “Ecuador”. You could use the display posts shortcode either in a post or on a page to have the software create a list to direct your readers to those posts. Suppose you chose to feature all posts in the blog that Sara was the author of. Once again the display posts shortcode could be used to automatically generate the list. There are other variations but those are a couple worth considering.

Comments are closed.