This issue has been fixed. Please check.
Hello Rahul! Thank You for Your Anspress 4.0, Will Permalink be able to use post id? Such as http://anspress.io/question/1234. Permalink is currently using the post name format, if I modify the post title, Permalink it will be changed. Thanks!
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.