Jetpack Related Posts and Custom Posts Type doesn't work.
-
Hello! Using translator. Sorry for my mistakes.
I created a new posts type:
$args = array( 'labels' => $labels, 'public' => true, 'show_in_menu' => true, 'menu_position' => 6, 'menu_icon' => 'dashicons-universal-access-alt', 'supports' => array('title', 'thumbnail', 'editor', 'comments'), 'taxonomies' => array('category', 'post_tag'), 'rewrite' => array('slug' => 'skins'), 'query_var' => true, ); register_post_type('skins_type', $args);functions.php:
function allow_my_post_types($allowed_post_types) { $allowed_post_types[] = 'skins_type'; return $allowed_post_types; } add_filter( 'rest_api_allowed_post_types', 'allow_my_post_types' );See page: http://minemik.ru/skins/skin-dzhudi-khops-iz-zveropolisa/
and nothing appears.If you look at the page code, and there you can see the text “or similar entries,” but they are not.
http://joxi.ru/gmvP4nsx4LBwAa
Help me please.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Jetpack Related Posts and Custom Posts Type doesn't work.’ is closed to new replies.