Skip to main content

Questions tagged [search]

The method by which users find information on your WordPress site

0 votes
0 answers
13 views

Multiple search forms and respective results page templates?

I have a Woocommerce site and I would like to set up two different search forms, one for products and one for everything else (pages, posts, and a couple CPTs) that would render on it's own respective ...
Ryan M Vickerman's user avatar
1 vote
0 answers
17 views

How to make search by ID work on front-end?

we created a website where people can post lonely hearts ads. For now we only have a Dutch version available but the idea is to expand to other countries too. It's a great market, and fun to do. But I ...
Frank's user avatar
  • 11
0 votes
2 answers
17 views

How to search Wordpress for content specifically in title?

Using the standard Wordpress search syntax, I'm trying this: https://sample.wordpress.com/?s=-2024&category_name=forsale My goal is for this search to remove posts that include "2024" in ...
Crabgrass0899's user avatar
0 votes
0 answers
19 views

How to Handle? vp_page Parameter in WordPress and Resolve Google Search Console Validation Issues?

I am encountering an issue with the? vp_page parameter being generated in the URLs on my WordPress site. Despite adding the Disallow: /*?vp_page= directive to my robots.txt file, the validation in ...
Himanshu Mishra's user avatar
0 votes
0 answers
18 views

How to Prevent ?keyword Parameter from Being Indexed and Stop Its Generation in WordPress?

I need help with the following:- 1-Prevent ?keyword parameter from being indexed in search engines (Google Search Console). 2-Stop ?keyword parameter from being generated in WordPress.
Himanshu Mishra's user avatar
-1 votes
2 answers
55 views

How to improve the performance when using a flat-file dataset and PHP for implementing advanced search function?

I have to add some advanced search function to a WordPress website, I can't use SQLite database because we are not allowed to install any driver on the system. I solved the issue using a CSV file that ...
G M's user avatar
  • 49
0 votes
0 answers
16 views

Query posts which are related via postmeta

I have two custom posts type: course and teacher. A course can be related to one or more teachers. Relations are postmeta containing teacher post id. I need to be able to filter courses list inside ...
Mauro Destro's user avatar
0 votes
0 answers
18 views

Autocomplete search field that is feed by a taxonomy from custom post type?

So I have a wordpress site that uses Jet Engine filters and I need to build a page that has an autocomplete search that when I start typing for exemple "rep" it shows me "repair", ...
Guilherme's user avatar
0 votes
1 answer
19 views

Modify WordPress Search

I'm facing a challenge with a WordPress project and I would appreciate the community's help in solving it. The issue lies with the search functionality. When customers type in a search term, such as &...
Roniery Rêgo's user avatar
2 votes
1 answer
77 views

How to get Wordpress to ignore the search parameter in the frontend?

A Wordpress URL that triggers a search includes a s parameter and a value. So, something like https://example.com/?s=hello. I want Wordpress to not render the search template, but to use whatever ...
MastaBaba's user avatar
  • 291
0 votes
1 answer
57 views

Pagination URL not good

the theme I made didn't have a search functionality. I started receiving in Search Console thousands of soft 404 for similar pages: https://www.example.com/?s={search_term_string}page/3page/2page/...
Pikk's user avatar
  • 279
0 votes
0 answers
33 views

How to add CPT in Elementor pro search template

i have created a Search template in elementor pro, i'm using Archive Posts widget to show the result. but the problem is i want to include the CPT in the result. i tried the pre get post function, ...
vikram's user avatar
  • 1
0 votes
1 answer
18 views

Loadmore search results not showing new results?

I have search results which will show load more button but when search for new result it is started from the already incremented value how to avoid this jQuery(document).on("click", '#...
mike's user avatar
  • 1
0 votes
0 answers
22 views

Display posts based on the selected category when no subcategory is chosen

The following code displays posts based on subcategory. First dropdown is a custom taxonomy category, second dropdown narrows down the search to subcategories associated with selected category. My ...
Sebastian Szydlowski's user avatar
0 votes
0 answers
41 views

Fix Custom Post Type not appearing in search results?

I am using ACF to create a custom post type (CPT = "books"). I cannot get the CPT to appear in Wordpress search results (I tried both default Elementor search widget and Jetsearch) I have ...
Andrew D's user avatar
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
1
2 3 4 5
62