Skip to content
Display Posts

Display Posts

The simplest way to display a listing of posts in WordPress.

  • Home
  • Tutorials
  • Documentation
    • Documentation
    • Parameters
    • Filters
    • The Output Filter
    • Extensions
  • Support
  • More
    • Back

Filter: display_posts_shortcode_output

The output filter lets you add, edit, remove, and re-order the elements that make up each post listing. More information.

Move the image after the title

If you include the image_size parameter, Display Posts will add an image below the post title. The snippet below lets you make the image appear before the post title instead.

Posted byBill EricksonJanuary 4, 2019January 4, 2019Posted inDisplay Posts Shortcode

Exclude posts already displayed

If you’re using the Display Posts Shortcode multiple times in one page, you can use this to exclude already displayed posts from new shortcode queries. This will prevent duplicate posts. If you have other, non-Display Posts queries running on the page and would like to exclude them as well, you’ll need to modify those queries […]

Posted byBill EricksonJanuary 3, 2019April 17, 2020Posted inDisplay Posts ShortcodeTags: featured

Display default image

The image_size parameter lets you include a thumbnail in your post listing, but it only works if the post has a featured image attached to it. The code snippet below lets you specify a default image ID to use in case a post doesn’t have a thumbnail. You can find the image ID by going […]

Posted byBill EricksonJanuary 3, 2019January 4, 2019Posted inDisplay Posts ShortcodeTags: image

Posts navigation

Newer posts 1 2
Display Posts by Bill Erickson