Adding recent posts to a page

One of the problems with the ‘recent posts’ option for your homepage is the inability to add content.This has nothing to do with the theme, it’s just how WordPress works.

But WordPress does have a neat built in function that lets you display recent posts anywhere you want.

To use this on the Tradesman Theme add the [recentposts] shortcode to a new page above, below or in between your content. You will then see the list of recent posts like this:

I’ve limited the number of posts on this demo page using a shortcode attribute: [recentposts numberposts=3]. The default is 9 posts on a page.

If you want to link to pages as well as posts the shortcode format is: [recentposts pages=116,25,188]

To find the ID number of the post or page you want to display:

  1. View the list of posts or page in your dashboard
  2. Edit the page you want to display
  3. Look in the address bar at the top of the screen and you will see something like: post=317.
  4. Copy the post number into the shortcode.

TheĀ  example below has two pages and a post. Note the placeholder for the pages without a featured image:

Easy peasy.

Get a Quote

Call us today

01234 567890

Or fill in the contact form

Contact Us

Get the Theme

If you want to give the theme a go to the Getting Started page. If you need help setting things up give me a call on 07921 859805 or fill in the form on the Contact page.

Real Time Analytics