Hello my wordpress theme’s post type listings single post showing a blank page.But on another 3 hosting it works. A complete blank even page title not showing.
I tried to solve the problem by :
- WP_DEBUG set to true
- Removing The hierarchical
- setting error_reporting(-1)
- Deactivating All plugins
- Setting the theme Newly
But all of those steps gone vein.
link http://www.thefeastbox.in/listings/thai/
My custom post type register:
public function the_foody_restaurant_listing()
{
register_post_type('listings', array(
'labels' => array(
'name' => __('Restaurant listing', 'thefoody') ,
'singular_name' => __('Restaurant listing', 'thefoody') ,
'add_new' => __('Add New', 'thefoody') ,
'add_new_item' => __('Add New Restaurant listing', 'thefoody') ,
'edit' => __('Edit', 'thefoody') ,
'edit_item' => __('Edit Restaurant listing', 'thefoody') ,
'new_item' => __('New Restaurant listing', 'thefoody') ,
'view' => __('View Restaurant listing', 'thefoody') ,
'view_item' => __('View Restaurant listing', 'thefoody') ,
'search_items' => __('Search Restaurant listings', 'thefoody') ,
'not_found' => __('No Restaurant listings found', 'thefoody') ,
'not_found_in_trash' => __('No Restaurant listings found in Trash', 'thefoody') ,
'parent' => __('Parent Restaurant listing', 'thefoody') ,
) ,
'public' => true,
'show_ui' => true,
'exclude_from_search' => true,
'hierarchical' => true,
'supports' => array(
'title',
'editor',
'thumbnail'
) ,
'query_var' => true,
'menu_icon' => 'dashicons-megaphone'
));
}