Custom Taxonomies Support

Posted in: Newspaper
Post count: 4

I see that there is a support for a custom post type in blocks but there is no support for custom taxonomies. I have created a new custom post type and I am using blocks for that but I also need to have two different categories for blogs and my custom post type but by passing the id of the term in my custom taxonomy in the block shortcode it does not recognize that category and does not filter it.

Post count: 22421

Hello,

Unfortunately our blocks will not work with custom taxonomies. You can filter cpt’s but not by their taxonomy. Sorry. Thank you for your understanding.

Post count: 4

Hello,

That is really sad. There has to be an option to filter custom taxonomies because there is a high chance if someone is using custom post types they will use custom taxonomies.

What if as a workaround I try an alternative approach and get all the ids of the posts assigned to a category and give them as a parameter to postids using the do_shortcode wordpress function.

Will it effect performance?

Post count: 22421

Hello,

You will have to test it out. i cannot say for sure if it will affect performance or not as we have not tested this. If you want to show specific posts in a block you do not have to alter the code. You can simply use the post id filter in the block settings: http://screencast.com/t/YdwlvDnK

Thank you!

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