Dynamic sort or filter on a page

Hi,
I have a page that just lists all the posts in a certain wordpress category.
I would like to be able to have a few filter buttons or a dropdown to be able to limit the posts that are listed.

For example, a dropdown for say posts by topic based on post tags.
I know I can do this manually with many additional pages but would like to be able to do this on the same page.

Thanks!

Hello @clefler,

Thanks for writing in! Regretfully we do not have any sort or filter element that you can add on your page. Perhaps, this video tutorial might help you instead:

Best Regards.

ok thanks, I watched that and also read this post Filter Looper Dynamic Posts by CPT UI Custom Taxonomy Terms

Everything is working except for stating the post category in the Query String. It is just a drop down in the Query Builder but how do you specify a post category in Query String form.

Nevermind, found that this works for category…

category_name=MYCATEGORY

I am still trying to figure out how to include post tags in Query String, could you help with that?

Hi @clefler,

You can use the tag=tagname to add the tag parameter to the Query String. I would suggest you go through the following article on adding the Tag parameter.

Hope it helps.
Thanks

ok thank you, that was very simple

I am also looking to display the list of the tags for a post somewhere in the content of the post itself. I know this is done by default in Pro (at the bottom of the post) but when you use the layout builder there isn’t an element or option for that.

Hi @clefler,

Glad that we are able to help you. While using the Layout you can use the Term element and reset the Looper Provider to Current Post Term to get the Category and the Tags of the post.

Screenshot-2022-02-10-154906

Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.