April 28, 2017 at 6:51 am #26528palmtreeParticipant
I’m trying to use this Livemensh Grid Widget to output only specific category’s post. My case this cat id is 5. So far by putting “cat=5” inside additional section in the Build Posts Query that successfully outputs only the post of cat=5 but header (portfolio / taxonomy) filter still outputs all the category names that are registered in the website even though most of them are irrelevant not in use / nothing to do with cat=5. I want to see the filter names that are identical to only the child categories of that cat=5 as parent. For example if there are 5 categories under the cat=5. I want those 5 category slugs appear in the filter section. Is there any way to do this?
Also I’m wondering if there is a way to limit outputting only the latest from each child category as well. This is actually not only for this particular Livemesh Grid widget but also for other livemesh post snippet widget… For example, if there are 5 child categories under the cat=5, I want the number of output be 5 (all the latest from each child categories). If there is a custom code, I would like to know.
Thank you.May 2, 2017 at 2:40 pm #26558RaghavendraModerator
palmtree – Sorry about the delayed reply. At present, the filter gets changed to the chosen categories only if you specify one or more categories in the Taxonomies field of Build Query window. The functionality is there but limited to Taxonomies field since it is hard for us to read custom query arguments specified in Additional field with its innumerable possibilities.
And also if you do specify the taxonomy argument, the build query function of the siteorigin page builder does not return the elements that belong to child taxonomy terms. So, the query results output would be just those posts which belong to category 5 and no posts which belong to child categories is returned by the siteorigin query builder. You can verify the same by the red colored number of posts that gets displayed in the Build Posts Query button.
Hence, even if we built a filter which takes into account child categories, it would not be useful since no posts from the child categories would be populated. The cat=5 does the same and returns no child category posts.May 9, 2017 at 8:12 am #26589palmtreeParticipant
I see… Thanks for the explanation. It seems like it is lot more complicated than I thought… No problem I will create the loop without using those widget.
- The topic ‘Livemesh grid widget filter using specific category for query argument’ is closed to new replies.