Custom post type support solution
-
The topic about custom post type support was closed so I have to open a new one.
Here is the solution:
add_filter('pre_get_posts',"my_custom_shared_drafts"); function my_custom_shared_drafts($query) { if(!is_admin()) return; $screen = get_current_screen(); if($screen->base != "posts_page_shareadraft/shareadraft") return; $query->set('post_type',array('post','recipe')); }
You should add this to your child theme functions.php or your custom plugin. Of course replace “recipe” with your custom post type slug.
- The topic ‘Custom post type support solution’ is closed to new replies.