I have a custom post type tickets
. Here I have some categories. And here is my codes.
register_post_type(
'tickets',
array( 'labels' => array(
'name' => __( 'Help and Support' ),
'singular_name' => __( 'Help and Support' ) ),
'public' => true,
'has_archive' => true,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ))
);
// register the new ticket category
register_taxonomy( 'ticketcat',
array( 'tickets'),
array('hierarchical' => true,
'labels' => array(
'name' => __( 'Categories', 'test'),
'singular_name' => __( 'Categories', 'test'),
'search_items' => __( 'Search Categories', 'test'),
'all_items' => __( 'All Categories', 'test'),
'parent_item' => __( 'Parent Category', 'test'),
'parent_item_colon' => __( 'Parent Category:', 'test'),
'edit_item' => __( 'Edit Categories', 'test'),
'update_item' => __( 'Update Category', 'test'),
'add_new_item' => __( 'Add New Category', 'test'),
'new_item_name' => __( 'New Category', 'test')
),
'show_ui' => true,
'query_var' => true,
'update_count_callback' => '_update_post_term_count',
'rewrite' => array( 'slug' => 'qualification', 'hierarchical' => true ),
)
);
Now, the Custom post type is working in back-end, I can add, edit delete any post. But when I search a post, its showing empty results. I have looked following questions already. But none helped me the query working.
and few more quesions as well. But not working. From those question I tried to check the url of the search results page. Here is it.
edit.php?s=technical&post_status=all&post_type=tickets&action=-1&m=0&paged=1&mode=list&action2=-1