Not completely compatible with CPTs
-
I noticed that the theme is not 100% compatible with the PODS plugin (or, I think, with any plugin that handles CPTs).
I have a custom post type called Book, linked to a category called Books and a custom taxonomy called Genre. In functions.php of the child theme I have inserted the change to the query to manage Book (add_filter to pre_get_posts). However, to make it work, I had to change the fixed control on the post type ‘post’ in content_search.php, content.php and content_single.php, also inserting ‘book’, in order to be able to see all the elements (date and author, for example) of the ‘Libro’ posts, excluding category and genre.
I had to customize the lili_blog_entry_meta function, inserting it in the functions.php of the child theme with a different name, and also modifying the calls in the php files mentioned above. The modification simply consists in using get_the_taxonomies instead of get_the_categories_list, with suitable transformations of the received string.
There may be a better and more ‘professional’ system, but I’m just an old programmer, and it seemed like a relatively quick way to fix the problem.
The best way would surely be better integration with the CPTs.
Thanks for the attention.
- The topic ‘Not completely compatible with CPTs’ is closed to new replies.