I have built some Custom Post Type using the plugin CPT UI.
Now I would like your theme to show these CPT.
I can see them in the cpt&taxonomy theme panel, but when I go to a category with only these CPT, there are no post shown.
What do you recommend ?
It would be great if you guys could manage CPT more easily.
Hello,
If you used our plugin and created the td_book CPT, you can set it from the block settings to display on your homepage: Simply use the ID you gave your CPT (our plugin uses ‘td_book’) and add it to the post type field in block settings: http://screencast.com/t/F9OwlGOrnKd (i set mine to show booksa and posts.) You can use the same method for the latest articles: http://screencast.com/t/Hn9kwjZdk
Result: my book is displayed both in my block and in my latest articles section along with the posts :http://screencast.com/t/VDE2zUGwpV4
I hope this helps.
Thank you!
Hi,
Unfortunately taxonomies do not work like that at the moment. For every post type there is a taxonomy. The books post type has a taxonomy based on genres. You can add a genre to your post and then use the genre page exactly as a category page. You can select how to display your books: http://screencast.com/t/vLyP3r24 so you will have a ‘genre’ page not a ‘category’ page. You can add a genre page from the wp menus area: http://screencast.com/t/vm5dsFsbvF1
In order to get the post category to show a custom post type (to ‘mix’ taxonomies) is a more complicated thing. It could be done by hard coding it, but unfortunately i have no quick solution for it. You can maybe find some usefull info on the subject here: https://premium.wpmudev.org/blog/add-custom-post-types-to-tags-and-categories-in-wordpress/
I hope this helps.
Thank you!