Skip to main content

Questions tagged [search]

The method by which users find information on your WordPress site

0 votes
1 answer
16 views

WPML posts_joins on translated items

I found a way to filter the search query so it goes though the product_cat title and description to look for a term and then display all the connected product. I am now looking for a way to make it ...
allumette's user avatar
0 votes
1 answer
60 views

Including product categories (product_cat taxonomy) title and description in search query

WHAT I'M TRYING TO DO I'm using woocommerce, but the question could work for WP categories also. When searching for a product, the search engine only looks for products info (title and description) ...
allumette's user avatar
0 votes
0 answers
23 views

Display search results within same page using elementor as page builder

I have been using elementor for page builder tried to show the results in same page but once form submitted navigated to next page. Is there a way to add any php code in this elementor section.
mike's user avatar
  • 1
0 votes
0 answers
23 views

Create index for own custom data in elasticpress from wordpress plugin

I creating a plugin , I inserted some custom data into database mysql , I need to create an index for that custom data in elastic press for my future search. I am confused about creating an index for ...
Meena Arumugam's user avatar
0 votes
0 answers
13 views

How to make the search form in "Add media" search custom attachment fields?

I've added custom fields to image attachments on my site, something like this: function mysite_attachment_field_to_edit( $form_fields, $post ){ $form_fields['my_ref'] = array( 'value' =>...
Phil Gyford's user avatar
0 votes
1 answer
45 views

Search page doesn't recognise post_type=page

I've created some custom filter buttons for my search page, listing various custom post_types. Included in the list is the basic 'page' post_type. However, when I use this filter (updating the url to /...
evilscary's user avatar
  • 111
0 votes
0 answers
23 views

Why is my site removing $_GET and hyphenating my search term?

I'm working on a WordPress site whose search is not working. If I try to search for "health data", the search term becomes "health-data" which is unlikely to find anything. I'm ...
Scott's user avatar
  • 113
1 vote
0 answers
38 views

Include bbPress topics and replies in WordPress search results?

I realize this deals with a plugin (bbPress) however I hope it's still considered relevant enough to WPSE since it deals with altering WordPress search results... How can I ensure that bbPress topics ...
Jesse Nickles's user avatar
0 votes
1 answer
27 views

Customize search_filter($query) function

I need to setup with this code BUT it doesn’t work. What I need to do: I need to setup the search engine so it shows the posts of the category “my zen” and all the forums (bbPress). function ...
Eluyawi's user avatar
0 votes
1 answer
36 views

search by meta field in the regular WordPress admin panel search

I want to expand the Wordpress admin panel search using this code. function add_search_query_meta( $query ) { if ( is_admin() || ! $query->is_main_query() || ! $query->is_search ) ...
Givanni Dev's user avatar
0 votes
1 answer
56 views

search filter for search and tag page doesn't work

Here is my search function in functions.php function search_filter($query) { if ( ! is_admin() && $query->is_main_query() ) { if ( ($query->is_tag() ) || ( $query-> ...
made leod's user avatar
0 votes
0 answers
43 views

How can I change text on my SearchWP search results page, as this is not an editable page in Wordpress?

I just want to change the text "Search results for:" to something else e.g. "All results for:" The class is .page-title. I can't find this anywhere and I cant edit the page html as ...
Joseph Lewis's user avatar
1 vote
2 answers
57 views

Search for portfolio tags & mixing portfoliotags and post tags

I have been trying to filter my search result without success. Here is my function in functions.php I want to retrieve only post and portfolio posts (no pages). Below is the code I found on your ...
made leod's user avatar
0 votes
0 answers
186 views

Rewrite URL custom search query

I have this url: mydomain.com/?s="SEARCH TERM"&categoria="WORDPRESS CATEGORY OF POSTS"&province="CUSTOM POST FIELD"&poblacion="CUSTOM POST FIELD" ...
Maseres's user avatar
0 votes
1 answer
54 views

Adding another search field in a custom search box

I'd like to add another criterium to search my posts, the custom field meta key is "function_camere", and I want to add another dropdown selector to choose a value for this new search ...
Andrea Sacconi's user avatar

15 30 50 per page