• Resolved David Gard

    (@duck_boy)


    Hey all,

    I have 2x custom post types and for some reason the posts from one of them are not didplaying (Being shown the index page with title of ‘Page not found’), but from the other they are. I suspect that I am missing something simple but not sure what to look for, so any help is appriciated.

    Here is the code to register the post type for the one that is not working, I wonder if perhaps someone can see an error that I am missing –

    function initiate_services(){
    	$labels = array(
    		'name' => _x('Services', 'post type general name'),
    		'singular_name' => _x('Service', 'post type singular name'),
    		'add_new' => _x('Add New', 'service'),
    		'add_new_item' => __('Add New Service'),
    		'edit_item' => __('Edit Service'),
    		'new_item' => __('New Service'),
    		'view_item' => __('View Service'),
    		'search_items' => __('Search Services'),
    		'not_found' =>  __('No services found'),
    		'not_found_in_trash' => __('No services found in Trash'),
    		'parent_item_colon' => ''
    	);
    	$args = array(
    		'labels' => $labels,
    		'public' => true,
    		'publicly_queryable' => true,
    		'show_ui' => true,
    		'query_var' => true,
    		'rewrite' => true,
    		'capability_type' => 'post',
    		'hierarchical' => false,
    		'menu_position' => 7,
    		'supports' => array('title','editor','author','thumbnail','excerpt','comments','custom-fields')
    	);
    	register_post_type('service',$args);
    }

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some posts not being displayed’ is closed to new replies.