category view shows no results
-
Hi, I’m using CFS which is absolutely amazing, thanks so much!!!
However I have a problem at showing all posts of a category:
no results and it shows just empty with a message “No results to display”.It appears the taxonomy isn’t picked up by wordpress correctly.
Any additional steps required?
my CFS functions are:
/* add custom post type video */ add_action( 'init', 'cptui_register_my_cpts' ); function cptui_register_my_cpts() { $labels = array( "name" => "Videos", "singular_name" => "Video", ); $args = array( "labels" => $labels, "description" => "Videos anlegen", "public" => true, "show_ui" => true, "has_archive" => false, "show_in_menu" => true, "exclude_from_search" => false, "capability_type" => "page", "map_meta_cap" => true, "hierarchical" => false, "rewrite" => array( "slug" => "video", "with_front" => true ), "query_var" => true, "taxonomies" => array( "category", "post_tag" ) ); register_post_type( "video", $args ); // End of cptui_register_my_cpts() } /* eof custom post type video */ /* add videos to search index */ function filter_search($query) { if ($query->is_search) { $query->set('post_type', array('post', 'pages', 'video')); }; return $query; }; add_filter('pre_get_posts', 'filter_search'); /* eof add videos to search index */
best regards
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘category view shows no results’ is closed to new replies.