Add Custom Post type to wp_post_types global variable
-
Hi all,
I pulling out my hair trying to figure this out.
I making a plugin that uses custom post type. The post types are being created and working, but they aren’t showing up in the $wp_post_types global variable.
The only way I could figure out how to get them in the variable is to register the post type in the functions.php file without using an action.
Is there something I’m missing here?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Add Custom Post type to wp_post_types global variable’ is closed to new replies.