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 […]
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.
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 – […]