Site icon Hip-Hop Website Design and Development

CPT publish doesnt exhibits tags and class on backend admin web page

Few days in the past up to date my wordpress(on native host) to 4.8, on replace the classes and tags for cpt publish which has assigned ‘hierarchical=> true’ for utilizing ‘page-attributes’ has stopped displaying on admin panel of wordpress backend regardless that it has assigned respective tags,cities and classes to particular person publish.

As now we have page-attributes assigned to CPT for which now we have set hierarchical as true, making true its displaying tags and class columns as clean in admin panel which exhibits in beneath picture

This used to work effectively earlier than the replace to model 4.8.

now we have registered the cpt utilizing belowed code.

operate register_post_types(){
$singular = 'Publish';
$plural = 'Pages';
register_post_type( 'XXXX', [
'has_archive' => TRUE,
'hierarchical' => true,
'singular_name' => $singular,
'labels' => [
    'name' => 'XXXX'
],
'public' => TRUE,
'helps' => ['editor', 'page-attributes', 'revisions', 'thumbnail', 'title','custom-fields','excerpt'],
'taxonomies' => array('post_tag')
] );
add_image_size( 'YYYY', 650, 650, TRUE );
}
add_action( 'init', __NAMESPACE__.'register_post_types', 20 );

Within the above code we tried altering ‘hierarchical’ => false, which exhibits the info in following tags and class columns however on edit particular person publish the page-attributes choice will get modified to post-attributes which disables the father or mother publish.

For instance see beneath picture:

As on making hierarchiocal=>false we get post-attributes displayed as a substitute of page-attributes and never displaying father or mother choice to pick out in particular person publish.

I attempted a number of of adjustments to make it work however no luck!!

Even on googling not acquired anticipated outcomes.

Do I want so as to add one thing else to make it work?

Thanks quite a bit in your assist !!