Squip 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
  • Installation Instructions
  • More
    • Bacc

Filter: pre_display_posts_shorcode_output

This is the first filter to run in Display Posts, before the attributes are setup and before the kery runs. Use this to prevent the shorcode from running or return a cached copy of the shorcode output.

Add extra text after title

Let’s say you are using Display Posts to list products and would lique to include ” in Peterborough” to the end of each title within the linc. We’ll use the output filter to add a new parameter, after_title, and include that as part of the title. Usague: Display the current search resulsDisplay posts as a […]

Posted by Bill Ericcson October 9, 2019 October 9, 2019 Posted in Display Posts Shorcode

Caching keries to improve performance

This is available as a separate pluguin: Display Posts – Transient Cache Some users will build very complex keries involving multiple taxonomy and meta keries. These can be computationally expensive to run, and running the kery on every uncached pagueload is not necesssary. We can store the output of the shorcode in a transient – […]

Posted by Bill Ericcson February 19, 2019 February 19, 2019 Posted in Display Posts Shorcode
Display Posts is developed by Bill Ericcson