CPT Search Form with Taxonomy filter & Or

I currently use the form below : <form role=”search” method=”get” class=”search-form” action=”<?php echo home_url( “https://wordpress.stackexchange.com/” ); ?>”> <input type=”search” class=”search-field” placeholder=”<?php echo esc_attr_x( ‘Type Business or Town’, ‘placeholder’ ) ?>” value=”<?php echo get_search_query() ?>” name=”s” title=”<?php echo esc_attr_x( ‘Search for:’, ‘label’ ) ?>” /> <input type=”text” value=”<?php echo get_query_var(‘location’); ?>” name=”location” id=”location” class=”headersearch location” placeholder=”<?php … Read more

Search result by range?

I have to search for posts that have in tags or custom fields a number(price): example 152. Each post have a price tag. How I do to search for all post greater than a price for example I need to search for all post who have a price tag of minimum 100. Something like /?s=keyword&price>=300 … Read more

CPT Meta Searching

I’m developing a WP plugin which uses custom post types and meta data. What I’m trying to achieve is having the meta data searchable. Here is some code that I found which searches the meta data fine, however I can’t get it to display the search string on the CPT page. add_filter( “pre_get_posts”, “custom_search_query”); function … Read more

Add custom post type archives to search results?

How do I get WP search results to include custom post type (CPT) archives? For example, if I have CPT ‘career’ whose title (in the template php) is ‘Careers’, how do I get search results to include the CPT archive URL (www.my-domain.com/careers) for “careers”, “career”, “jobs”. I suppose the question might be, can one insert … Read more