• Resolved djsaders

    (@djsaders)


    Hi,

    When i enable this plugin, i can see it on the core posts, but it doesnt show on the custom post types which is where i need it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter djsaders

    (@djsaders)

    Solved it… i had to modify the plugin to make it run after everything else so i set it to 30

    Hi DJSaders.
    Does that mean, if there is an update to the plugin, you’ll loose your changes? Or did you fix this with a filter hook?

    I found out that my post type was not registered to show_in_rest, so I fixed that with filter hook, which I added to my theme functions.php file.

    add_filter( 'register_post_type_args', function( $args, $post_type ) {
    	
    	if( 'event' === $post_type ) {
    		$args['show_in_rest'] = true;
    	}
    
    	return $args;
    
    }, 10, 2 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Post Types’ is closed to new replies.