Hello Jayanta, I think all you need is this: /** * Add all CPT to search query. */ function anspress_add_cpts_to_search( $query ) { // Check if search page. if( is_search() ) { // Get post types. $post_types = get_post_types( [ 'public' => true, 'exclude_from_search' => false ], 'objects' ); $searchable_cpt = array(); // Add available post types. if( $post_types ) { foreach( $post_types as $type) { $searchable_cpt[] = $type->name; } } $query->set( 'post_type', $searchable_cpt ); } return $query; } add_action( 'pre_get_posts', 'anspress_add_cpts_to_search' ); Note: this hook includes all CPT in search query. If you want only specific CPT then replace get_post_types with array of CPT.
Here is upload progress, just made a commit to Github.
Yes there will be, some tasks remained on reputation page hence I have not committed reputation page. Will do in few days.
Adding images to Q or A puts them in the library but there are NO thumbails when viewing the Media Library (so they are kinda of useless). While Blog Post images are ok.
Permalinks ! I see some changes in Base Page permalink. Now it contains “index.php” for the Questions List page, Ask page, Categories page. Is that nornal ?
I think this is not needed twice. IMHO.
This is not a problem but rather a user experience improvement. During the upload of an image, there is nothing to inform the user this is happening. Especially when the image is large. Not sure if something could be done about this.
Other issue is the categories. I upload an image, and after that I can not remove it. Also the Category Icon Class and Category Icon Color In previous version it let me customize color. Now I can not, When I write it and I press the button Update… It just does not update and delete the fields
Thanks for reporting. This was due to missing minified JS. I already fixed it. Please download from here: Latest commit
In my browser debug i see: GET http:// website. com/wp-content/plugins/anspress/assets/js/min/list.min.js 404 not found