• I just tried this plugin for custom post type and I found that this plugin is not working for custom post types.

    How to make this plugin work for custom post type?

Viewing 2 replies - 1 through 2 (of 2 total)
  • In wp-seo-structured-data-schema/lib/classes/KcSeoHelper.php, look at the kcSeoPostTypes() function (line 41 for me).

    Replace

    $post_types = get_post_types(
    	array(
    		'_builtin' => true
    	)
    );

    with

    $post_types = get_post_types(
    	/*array(
    		'_builtin' => true
    	)*/
    );

    Basically this determines which post types the plugin will show on. By commenting out the array you prevent it from showing on internal WordPress post types only (page, post).

    It works! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin not working for custom post type’ is closed to new replies.