I'm trying to create a drop-down select option that lists 15 of the most popular tags in a custom view that displays posts based on the user's filter options.
On our "Resources and News" page I would like users to be able to filter by the taxonomy tags we have available. The drop-down should show up when users click the "Filter by Topic" text. There are many tags on our site at the moment so, I would like to limit the amount of tags listed to the 15 most used tags. Currently when trying to add the tags filter after clicking the "New Filter" button the "Tags" option is unclickable. I have provided screenshots of the "Search and Pagination" code and the "Query Filter" settings.
Is there any documentation that you are following?
No
Is there a similar example that we can see?
What is the link to your site?
LINK TO SITE: hidden link
LINK TO PAGE WHERE SEARCH EXISTS: hidden link
Hello. Thank you for contacting the Toolset support.
Currently when I checked with the problem URL you shared I do not see any tags when I click on ""Filter by Topic" - Can you please tell me how can I see all the tags and send me admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
First of all - I checked the view and I see you set the view to order by custom field "Featured". In that case please note that the view will only display the items where the custom field "Featured" value is set.
Now, another thing is - you said:
I would like to limit the amount of tags listed to the 15 most used tags.
But think of the situation that when view loads it should not have the post where any of the tag is assigned out of those 15 tags. That conflicts the search logic.
If you still want the first 15 most popular tags I can integrate it.
Hi Minesh good catch regarding the order by "Featured" issue. The search should display all posts but anything that is set to "Featured" should be displayed in the top view where the cards are bigger and there are only two columns.
Additionally, I'm not exactly sure if I understand your concern with limiting the tags list. If you're saying that only posts that include the top 15 most used tags will appear in the results, that is ok.
Please let me know if you have any additional questions or if I can clarify anything. Thank you for your time Minesh.
Normally - view manages the search filter options based on the available result.
Think of the case where you search with something and you got X result but out of those results the top 15 tags are not part of those results because tag is not assigned to those posts. That conflicts the search.
So I suggest either you go with all tags or let view manages as it is rather modifying the tags filter to show top 15 tags.
Ahh, I see your point. Instead, can we display all tags in order of most popular, and add a scroll bar to the drop-down so that it doesn't show 800 tags all at once?
With the view you are using:
- hidden link
I've selected the option form "Custom Search Settings" sections:
- Let me choose individual settings manually and Always show all values for inputs