I created a custom post type with ACF, then I registered the CPT with the standard categories. It works fine for all the blocks and shortcodes of the theme.
On Megamenu area, when I add a standard category to the menu, I only see the standard posts (it doesn’t show the custom posts, even if they have the same category)
Hello @marc_antonio !
Please provide more information about the settings you’ve applied and what exactly you need to achieve there.
A solution for sending a screenshot/video is this:
Download, capture, and send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link; paste it here.
Thank you!
It is difficult to show the problem with a video. It is easier with a list:
1- created custom post type called “evento”
2- registered custom post type on standard categories with following code:
function add_categories_to_custom_post_type() {
register_taxonomy_for_object_type(‘category’, ‘evento’);
register_taxonomy_for_object_type(‘category’, ‘luogo’);
}
add_action(‘init’, ‘add_categories_to_custom_post_type’);
3- It works fine, I mean that I can add standard categories to custom posts. It works when I filter custom posts and categories with Big Grid Flex and other Newspaper theme functions
4- created menu including standard categories and set as Megamenu
5- Megamenu only show standard posts related to categories (custom posts related to same categories do not appear in Megamenu)
hanks. Please consider that Megamenu works fine with Custom Posts when they are registered on Custom taxonomies.
Only it doesn’t work when Custom Posts are registered on WordPress standard categories.
-
This reply was modified 2 years by
marc_antonio.