• 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.

    https://ww.wp.xz.cn/plugins/jetpack/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    It seems that the Custom Post Types haven’t been fully indexed yet. Could you try the following?

    1. Update to the most recent version of Jetpack.
    2. Go to this page: https://wordpress.com/settings/general/
    3. Select your site in the dropdown
    4. Scroll down to the bottom of the page.
    5. Click on “Full Sync”.

    Once you’ve done that, your posts should start being indexed, and indexation should be complete after a few hours.

    Let me know if it helps!

    Thread Starter artmik

    (@artmik)

    Unfortunately, it does not work

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    It seems that you’re still running an old version of Jetpack . Could you update to Jetpack 4.2.2, and then try to synchronize again?

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.