Hi to all,
I’m looking for information on the Wix Blog on the WIX website. I can’t find information on whether this goes: Is there any way to use code to filter posts by year of publication in a particular category on the blog? I would like to use the Dropdown menu, where I will see all available years and after selecting, only posts from that year in the current category will be displayed.
Thanks for the help
nobody knows? @ahmadnasriya
Thank you
Hi Daniel
I’m not familiar with Wix blog, but the concept is always the same, if the posts data are available in a collection, and have a field to store them, then sure you can.
a) First we need to get all items, filter them by year in an array, then use the array items as the dropdown options, b) We need to set an onChange event handler on the dropdown to filter the results by the selected value.