Filtering/ Sorting & Taxonomies

Posted in: Newspaper
Post count: 162

Hello,

I’m trying to create a page with all articles but I want to enable readers to search by “specific” categories (not all categories) and tags. When I use the filtering sorting options, I see all categories. How can I work around this?

To be clear, the website has for example, 15 categories, but I want users to be able to filter only by category 5,8, 12. How do I set those in the dropdown?

Post count: 35449

Hello,
If this is a flex block then you can set the category id-s that you want to be displayed in that drop down – https://i.imgur.com/EVhXEcC.png
Thank you!

Post count: 162

No that’s not what am aiming for. I am creating a way for users to filter articles according to categories and tags. I am trying to use the Flex Loop Filters but cannot understand the “taxonomies” part. When I write “category” under “slug” — it obviously shows all categories. Can I modify this to show only certain categories?

Post count: 31

That’s the same question I am looking for an answer. I want the user will be able to choose any post, page, or category using that filter. Is there a way for that, please?

Post count: 35449

Hi,
If I understood correctly, you want to offer visitors/users the possibility to filter the results on certain blocks and you are using the “Flex Loop Filters” element – https://i.imgur.com/VWVLeEd.png this is using the “TAXONOMIES” to filter the flex loop, and a taxonomy in this case is the category – https://i.imgur.com/cr3q2U4.png, post_tag – https://i.imgur.com/W1zhodQ.png and you can create your own taxonomies using a cpt plugin and doing this you can display only the “tax categories you want to be in that filter”.
Thank you!

Post count: 162

Hello Calin! Happy New year… revisiting this post after a long while. I want to follow up as I managed to create a tag based filter. But here’s what I aim to do:

In the Category Page for Category A, I want users to be able to filter using a “Tag”. How do I display only specific Tags in the dropdown? I hope I could be clearer this time 🙂

Thanks in advance!

Post count: 21065

Hello!

Do you mean to filter by the tag chosen from a dropdown? So this you can achieve from here: https://app.screencast.com/cncUHRHGdNGii
Add a Flex Loop shortcode to display the posts regarding the filter.

Thank you!

Post count: 162

Hi @Bettina,

Thank you — is there a way that I can ensure only a few selected Tags are available in the dropdown to choose from?

I do not want all tags to be available in the dropdown.

Thank you in advance for your help!

Post count: 21065

Hello!

Unfortunately, no. Only to hide the empty terms.

Thank you!

Post count: 162

Hi @Bettina

Got it! Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.