Archived topic
Filter for Blogposts without Plugin
3 replies · Started by Benny on July 14, 2021
Hey there, at the moment im working on the blogpage of my new website https://hechtinsgefecht.de/blog/ and wondered if there is a possibility to create a blog filter like this im using right now but without a plugin. At the moment im using content views but honestly its a bit bloated to me and i solely want a simple filter by custom field or tag without hopping to another page (ajax i guess). Why im asking this? At the moment i rely on css to style the blogpost results and i wanted to use generateblocks for this. So maybe there is a simple way to hook a filter into a page with blogposts or a blog category to do this.
Hi there,
you can see here one method of doing that:
https://weichie.com/blog/wordpress-filter-posts-with-ajax/
but converting that to work with the GP Templates would require custom development.
Theres also several topics on WP StackExchange regarding it... but it does require a deeper knowledge of wp_query and ajax then we can support here
Thank you. I'll have a look into it!
Sorry couldn't be of much more help - its not easy to do :)