-
Author
-
May 20, 2015 at 16:34 #59583fundlrParticipant
Hi,
I’m using a Post Grid, and displayed categories filters on top of the grid (Show filters: yes please!)
So it displays all categories. (in the taxonomy order).
So, 2 questions:1. Is it possible to change the display order?
2. It displays all categories, parents and children, without distinction.
-> Is is possible to display only top level categories?
Then when clicking on a parent category, it displays posts from this category as well as from children categories?I guess it will require modifying js_composer\include\templates\shortcodes\vc_basic_grid_filter.php, around lines 2~11
And some other JS files, such as js_composer\assets\js\components\vc_grid.js, around lines 162~172Thanks !
May 20, 2015 at 21:28 #59636sharmstrModeratorThey are probably using get_terms. You can filter that with orderby and parent: https://codex.wordpress.org/Function_Reference/get_terms
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 30, 2015 at 19:51 #90166etwarkParticipantsorry how you solved i need also to set category filters.
November 30, 2015 at 20:12 #90169fundlrParticipantFinally I did not use the default VC component.
I used FacetWP to get my filters done.November 30, 2015 at 20:55 #90175fundlrParticipantNo sorry.
You might want to ask to VC support team if you can tweak their filters behaviour.December 14, 2015 at 17:56 #93170etwarkParticipantSorry @fundir i want also to use facetWP for filters but i need to know i need filter that do something like this
1) Main Category –> Restaurant
Child category –> PizzaI want that when an user want to search a restaurant that do pizza in the dropdown menu apper all the child categories and not the main.
The main category is something that help me to group all the articles..but the important filters are the child categories
With this plugin you can do this..?
Thanks
-
AuthorPosts
The forum ‘Plugins questions’ is closed to new topics and replies.