vdberk
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Archive page missing item.nameDear @jeroenrotty,
Down below the code you asked for:
$labels = array(
‘name’ => _x( ‘Machines’, ‘post type general name’ ),
‘singular_name’ => _x( ‘Machine’, ‘post type singular name’ ),
‘add_new’ => _x( ‘Voeg nieuwe toe’, ‘book’ ),
‘add_new_item’ => __( ‘Voeg nieuwe machine toe’ ),
‘edit_item’ => __( ‘Wijzig machine’ ),
‘new_item’ => __( ‘Nieuwe machine’ ),
‘all_items’ => __( ‘Alle machines’ ),
‘view_item’ => __( ‘Bekijk machine’ ),
‘search_items’ => __( ‘Zoek machine’ ),
‘not_found’ => __( ‘Geen machines gevonden’ ),
‘not_found_in_trash’ => __( ‘Geen machines in de prullenbak’ ),
‘parent_item_colon’ => ”,
‘menu_name’ => ‘Machines’
);
$args = array(
‘labels’ => $labels,
‘taxonomies’ => array(),
‘description’ => ‘Alle machines.’,
‘public’ => true,
‘menu_position’ => 5,
‘menu_icon’ => ”,
‘supports’ => array( ‘title’, ‘editor’,’thumbnail’ ),
‘has_archive’ => true,
);
register_post_type( ‘machine’, $args )Best Regards Ramon
Forum: Plugins
In reply to: [Yoast SEO] Archive page missing item.nameHello @maybellyne,
Thanks for your response, i also checked the structered data testing tool before i dropped the question here. The parrent page is not a regular page but a custom post type archive page.
So not a regular page with a title.
All other item.name are filled in correct only the parrent page of the single machine page is missing.Can you check this for me please.