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: do_shortcode_tag

Modify the entire shortcode output right before it is rendered. Note that this filter applies to every shortcode (not just Display Posts). The second parameter is the shortcode $tag which will be ‘display-posts’ when modifying the Display Posts shortcode.

Display post count as title of listing

You can use the title parameter in the shortcode to add a title above the listing of posts. But what if you want that title to dynamically include the post count? We’ll use the shortcode_atts_display-posts filter to modify the default parameters for the shortcode. If the shortcode does not have a title specified, we’ll give […]

Posted byBill EricksonAugust 14, 2019August 14, 2019Posted inDisplay Posts Shortcode
Display Posts by Bill Erickson