Custom post types not seen by get_post_types
-
Hi,
Changing add_action from ‘init’ to ‘setup_theme’ on line 107 of the custom-post-type-ui.php script will make it visible to the get_post_types function.
This is vital if folks are using Visual Composer and ‘Post Grid’ which grabs all post types via the get_post_types function.
Hope it helps!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Custom post types not seen by get_post_types’ is closed to new replies.