So I needed the campaigns to be added to my website’s existing categories and found a way to do it.
/*SUCCESSFULLY ADDS CATEGORIES TO THE CAMPAIGNS*/
register_taxonomy_for_object_type( ‘category’, ‘pfund_campaign’ );
register_post_type( ‘pfund_campaign_list’ );
it displays categories under post
and categories under campaigns too.
It also adds up the numbers on the dashboard
but when I call for articles from that category the ones from custom post type do not display. Can someone help me with why that happens ??
- The topic ‘adding categories but not displaying on page’ is closed to new replies.