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_title_tag

Modify what heading tag is used for display posts title if [[display-posts title="Recent Posts"]]. The default is h2.

Change title tag

The title parameter lets you define a title to appear above the post listing. This uses the <h2> element by default. You can use the display_posts_shortcode_title_tag filter to modify what heading is used. The code below changes this to an h4.

Posted byBill EricksonJanuary 4, 2019January 4, 2019Posted inDisplay Posts Shortcode
Display Posts by Bill Erickson