If you are using Relevanssi, it is messing with the native search (don’t know exactly at which point), thus, the standard query doesn’t work.
I have tested a solution, according to what I read in the plugin’s page, and it seems to do the trick. Just run the relevanssi function to append the results to the query, in this way:
relevanssi_do_query($query1);
Note that the parameter is the query object you created before:
$query1 = new WP_Query( array( 'post_type' => 'sdm_downloads', 'posts_per_page' => 3) );
Related Posts:
- AJAX search on post pages by custom post type
- How to make a WP_Query search with custom post types?
- Search multiple custom fields by using meta_query
- Search Custom Post Type with all meta attached?
- How Do I Use WP_Query to Run This Database Query as Search Result?
- Search tags in CPTs
- Including Custom Meta with posts_where query
- Including metaboxes from custom post types in global search — continued
- Advanced search form with filters for custom taxonomies
- Custom filter for main search: how to exclude specific post_type from search results
- how to get this tax_query working?
- Select2 AJAX and WP Query Returns ALL and does not filter
- find custom post type post by searching its custom field with my string
- Searching post types
- Change search query in wordpress custom post type
- Search Function not searching correct custom_post_type even though post_type is defined in search args
- post_type incorrect for custom post type
- Live search by custom tag
- Create Second Search Page Only for Custom Post Type
- Conditional posts in WP_query for search
- WP_Query with custom post type search showing all results every time
- Custom post type blog pagination conflict
- Customising wordpress search and using $_GET[“s”]
- Why does ‘exclude_from_search’ exclude a custom post type from WP_Query?
- Searching Custom Posts content with JQuery
- Custom post archive with search, is_search() is false?
- Creating a search form for custom fields
- How to retrieve all post titles of a specific post type?
- How to use a custom post type as front page?
- Sort Order for a Custom Query in a Post Type Archive Not Working
- Custom post type admin search
- Using standard search function with custom post type
- Display several random posts, but make sure a condition is met
- How can I generate a RSS feed based on a custom WP_Query?
- Custom query – alternate posts by category
- Custom post type loop split/ordered by taxonomy
- Display two post types ordered by two custom fields
- Customize Search to only search current custom post type
- How to search CPT’s by meta query from the admin dashboard?
- Display children and grandchildren of a custom post type
- Sort by two dates. Default entry date and custom field if present
- Querying CPT with Two Taxonomies
- Custom Query to display posts with custom field
- Get taxonomy description based on variable
- Custom Post Types not showing, custom WP_Query
- WP_Query | ‘post_type’ doesn’t work
- Filter by custom taxonomy slug on a custom post type
- Sorting multiple custom post types without a meta key/value pair by sort order
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Can I create a loop with multiple post types and specify different $args for each post type?
- Display custom post type from dynamic custom field
- wp_query check if integer exists in custom field’s array
- Previous/Next Link by Meta Value in CPT
- orderby rand is not working for a custom post types
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How do you paginate a query grouped by month?
- Query Custom Post Type Taxonomy term with multiple parameters
- dropdowboxes with pre-selected custom fields optios that filters the results according seach needs
- How to let users choose where to search for posts?
- pagination not working for category.php (custom post types in categories)
- Query based on custom fields start and end date
- Add ‘last’ class to second post in featured post loop
- Why is my WP Query not returning first result’s post meta?
- Different Limit number of post on different archive page
- DIsplaying URL of custom field in last post of certain taxonomy && post type
- WP_Query Custom Post Type if Category ID Equals
- Custom post types and ‘new WP_Query’
- Using page slug in wp_query
- WP_Query orderby not work with meta_key
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Returning a custom content types with meta values
- List categories, subcategories and posts from custom taxonomy and custom post type
- Sort results without WP_QUERY?
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- wp_query not returning my custom post
- filter the_content, custom post type, and wp_query
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Is it possible to get the specific content on the search page?
- Get next and prev item from custom WP_Query and Custom Post Type
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- Query to show post current day
- Using ACF values in nested WP queries for CPT with date values in the past
- Search for custom field input of a custom post type in ajax live search
- WP_Query: how to search tags in addition to a custom post type?
- Pagination Not Working When Used With WP_Query() `offset` Property
- Help understand and create a loop with WP_query
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Make pagination work as a carousel (custom query)
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- Search result based on URL
- Get posts associated with custom taxonomy alternate way
- tax_query showing no results
- Can’t use orderby in WP_Query
- Custom post type pagination, single page issue
- How to display elements of different post types?
- display post types alternately
- Query Custom Post Type by Tag
- How to store queried custom data and use it in multiple pages?
- Attaching multiple custom taxonomies to one CPT?
- Custom Field Search