WordPress.org

Ready to get started?Download WordPress

Forums

WordPress seo metabox issue (1 post)

  1. andy.maray
    Member
    Posted 1 year ago #

    Hi,

    I have problem with yoast seo plugin, that wordpress seo metabox will not show saved contents on their fields, but it would be seen on site's source code, and this issue only happen in custom post type, its work perfectly on post, pages.

    Here is custom post type code:

    register_post_type('portfolio',
    				array( 'label' => 'Portfolio Items',
    					'description' => '',
    					'public' => true,
    					'show_ui' => true,
    					'show_in_menu' => true,
    					'show_in_nav_menus' => true,
    					'capability_type' => 'post',
    					'hierarchical' => false,
    					'rewrite' => array('slug' => '%portfolio_page%','with_front'=>true),
    					'query_var' => true,
    					'supports' => array('title','editor','trackbacks','revisions','thumbnail', 'custom-fields','post-formats'),
    					'has_archive' => true,
    					'publicly_queryable' => true,
    					'labels' => array (
    				'name' => 'Portfolio Items',
    				'singular_name' => 'Portfolio Item',
    				'menu_name' => 'Portfolio Items',
    				'add_new' => 'Add Portfolio Item',
    				'add_new_item' => 'Add New Portfolio Item',
    				'edit' => 'Edit',
    				'edit_item' => 'Edit Portfolio Item',
    				'new_item' => 'New Portfolio Item',
    				'view' => 'View Portfolio Item',
    				'view_item' => 'View Portfolio Item',
    				'search_items' => 'Search Portfolio Items',
    				'not_found' => 'No Portfolio Items Found',
    				'not_found_in_trash' => 'No Portfolio Items Found in Trash',
    				'parent' => 'Parent Portfolio Item',
    			),) );

    Thanks,
    AndY.

Topic Closed

This topic has been closed to new replies.

About this Topic