It’s boring that my code has been removed ??
Yes, the problem persists.
https://pastebin.com/pmJ9i79q <- CPT and Tax code
Pictures:
CPT-onomies Disabled
Selected parent category – /vtorie-blyuda/
Image 1
echo $GLOBALS[‘wp_query’]->request;:
SELECT SQL_CALC_FOUND_ROWS wpcook_posts.ID FROM wpcook_posts INNER JOIN wpcook_term_relationships ON (wpcook_posts.ID = wpcook_term_relationships.object_id) WHERE 1=1 AND ( wpcook_term_relationships.term_taxonomy_id IN (2444,2455,2456,2457,2458,2459,2460) ) AND wpcook_posts.post_type = 'recipe' AND (wpcook_posts.post_status = 'publish' OR wpcook_posts.post_status = 'private') GROUP BY wpcook_posts.ID ORDER BY wpcook_posts.post_date DESC LIMIT 0, 12
CPT-onomies Enabled
Selected parent category – /vtorie-blyuda/
There are no posts assigned to this category
Image 2
echo $GLOBALS[‘wp_query’]->request;:
No query shown
CPT-onomies Enables with post assigned
Selected parent category – /vtorie-blyuda/
1 post assigned to parent category.
Image 3
echo $GLOBALS[‘wp_query’]->request; :
SELECT SQL_CALC_FOUND_ROWS wpcook_posts.ID FROM wpcook_posts INNER JOIN wpcook_term_relationships ON (wpcook_posts.ID = wpcook_term_relationships.object_id) INNER JOIN wpcook_term_relationships AS cpt_onomy_tt1 ON (wpcook_posts.ID = cpt_onomy_tt1.object_id) WHERE 1=1 AND ( wpcook_term_relationships.term_taxonomy_id IN (2444,2455,2456,2457,2458,2459,2460) ) AND wpcook_posts.post_type = 'recipe' AND (wpcook_posts.post_status = 'publish' OR wpcook_posts.post_status = 'private') AND ( cpt_onomy_tt1.term_taxonomy_id IN (2444,2465,2466,2467,2468,2469) ) GROUP BY wpcook_posts.ID ORDER BY wpcook_posts.post_date DESC LIMIT 0, 12
In all cases, loading taxonomy-recipe_type.php that you can find in my previous post.
Thank you for your help again!