Title: Missing custom post types
Last modified: February 19, 2021

---

# Missing custom post types

 *  Resolved [jarekjanuszewski](https://wordpress.org/support/users/jarekjanuszewski/)
 * (@jarekjanuszewski)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/missing-custom-post-types-2/)
 * Hi, I saw similar topic below but I still encounter this bug. None of my custom
   post types are available in the Query Settings tab except Post/Page/Media/Block.
    -  This topic was modified 5 years, 4 months ago by [jarekjanuszewski](https://wordpress.org/support/users/jarekjanuszewski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmissing-custom-post-types-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Deb Nath Utpol](https://wordpress.org/support/users/devutpol/)
 * (@devutpol)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/missing-custom-post-types-2/#post-14077451)
 * Hi [@jarekjanuszewski](https://wordpress.org/support/users/jarekjanuszewski/)
 * Thanks for using our plugin.
 * The problem you said is generated by WordPress Gutenberg because some parameters
   for custom post type are not compatible yet;
 * However, you can fix that by the following way:
 * In your function.php file (of your theme), add the following code to make the
   custom post type appear :
 * /**
 * * Add REST API support to an already registered post type.
 * */
 * add_filter( ‘register_post_type_args’, ‘gpl_partners_args’, 10, 2 );
 * function gpl_partners_args( $args, $post_type ) {
 * if ( ‘Partners’ === $post_type ) {
 * $args[‘show_in_rest’] = true;
 * // Optionally customize the rest_base or rest_controller_class
 * $args[‘rest_base’] = ‘Partners’;
 * $args[‘rest_controller_class’] = ‘WP_REST_Posts_Controller’;
 * }
 * return $args;
 * }
 * /**
 * * Add REST API support to an already registered taxonomy.
 * */
 * add_filter( ‘register_taxonomy_args’, ‘gpl_recipes_taxonomy_args’, 10, 2 );
 * function gpl_recipes_taxonomy_args( $args, $taxonomy_name ) {
 * if ( ‘genre’ === $taxonomy_name ) {
 * $args[‘show_in_rest’] = true;
 * // Optionally customize the rest_base or rest_controller_class
 * $args[‘rest_base’] = ‘genres’;
 * $args[‘rest_controller_class’] = ‘WP_REST_Terms_Controller’;
 * }
 * return $args;
 * }
 * Also, follow the screenshot [https://prnt.sc/pulg0f];
 * Change the post type name, show_in_rest = true, and rest-base (for the same taxonomy)
 * Let me know if that works;
 * If you still face this issue, please open a support ticket here, our support 
   team will contact you ASAP [ [https://gutendev.com/submit-ticket/](https://gutendev.com/submit-ticket/)]
 * -GutenDev
 *  Thread Starter [jarekjanuszewski](https://wordpress.org/support/users/jarekjanuszewski/)
 * (@jarekjanuszewski)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/missing-custom-post-types-2/#post-14097842)
 * Hi, sorry for some delay. Busy time. Instead of adding a filter I have added ‘
   show_in_rest’ to my custom post args declaration and it worked as the simpliest
   way.
 * Thank you for great support and clarification.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Missing custom post types’ is closed to new replies.

 * ![](https://ps.w.org/guten-post-layout/assets/icon-256x256.png?rev=1981699)
 * [Guten Post Layout - An Advanced Post Grid Collection](https://wordpress.org/plugins/guten-post-layout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/guten-post-layout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/guten-post-layout/)
 * [Active Topics](https://wordpress.org/support/plugin/guten-post-layout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/guten-post-layout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/guten-post-layout/reviews/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [missing](https://wordpress.org/support/topic-tag/missing/)

 * 2 replies
 * 2 participants
 * Last reply from: [jarekjanuszewski](https://wordpress.org/support/users/jarekjanuszewski/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/missing-custom-post-types-2/#post-14097842)
 * Status: resolved