Hello,
i use toolset block and i cant find out even after several searches how i can show only post by a category.
i have CPT "kontaktkorten" and in this i have a couple of posts and i like to filer a shortcode to only show in front end the post with custom taxonomy like this
[wpv-view name="kontaktkort-view" view_display="layout" limit="1" category="kontaktkort-press"]
But it does not work, and what i can see in old posts is that Block dont support this kind of filer ?
Hello and thank you for contacting the Toolset Support forum.
You are right, Toolset Blocks-based views do not yet offer support for passing a filter to the view using a shortcode argument. It does offer to create a filter on taxonomies. But you will need to specify what terms.
If you need to use a view using a shortcode, and filter it using a shortcode argument, you will need to build it using the legacy editor.
More about it here https://toolset.com/documentation/user-guides/views/passing-arguments-to-views/
But, we can still filter the view using custom code. I can help you with that, but I'll need to understand your use case better.
- Where do you intend to use the view?
- Will this view be used in several places or just once?
- How will you decide what terms to filter with for each usage of the view?
Any additional details about your use case will help me understand it better and efficiently advise you on how to implement it.