Site logo

Archived topic

WP Show Posts shortcode to display specific category

1 reply · Started by Kumara on April 17, 2022

Viewing posts 1–2 of 2

Hi,
I've created a list that will display the four most recent posts. I'd like to use the list on a few different pages and have it pull from a different category on each page. Is something like this possible with shortcode? Or should I create different lists for each page? Thanks!

Hi Kumara,

Yes, this would be possible through adding a settings parameter in the WPSP shortcode. For instance, if you have a category named test, modifying your WPSP shortcode as such would do:

[wp_show_posts id="1234" settings="taxonomy=category&tax_term=test"]

Kindly replace 1234 with the WPSP id.

Hope this clarifies. Kindly let us know if further assistance is needed. :)

This archived topic is closed to new replies.