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
0 votes
1 answer
48 views

shortcode appears as text in the search result

I have a shortcode added to the listing grid and the shortcode is working fine but then it displays it as text on the search result. <?php function booking_popup_snippet() { // Get the wpcode ...
futureyoon's user avatar
0 votes
0 answers
51 views

Search and filter terms of a custom post type only and display results

I am creating an archive-newsroom.php for my /newsroom page and custom post type. I have the custom post type working, but now I am trying to have a search input to display the custom post type ...
Justin's user avatar
  • 101
0 votes
0 answers
24 views

Get a custom post type's taxonomy type term names displayed as checkboxes and filter

I using this code to get all the taxonomies associated with a custom post type "newsroom" $post_type = 'newsroom'; // Get taxonomies associated with the custom post type $taxonomies = ...
Justin's user avatar
  • 101
0 votes
0 answers
34 views

Search only shows results when logged in

My search results are currently only showing results if I am logged into the back end, I only using SearchWP's Modal Form and no additional search plugins, what could be causing this?
kagura2023's user avatar
0 votes
0 answers
23 views

Search posts by meta key in admin and front

i want to search post by meta key and title. but when i use blow code search just meta key. how can i solve that? function extend_admin_search( $query ) { $post_type = 'post'; $custom_fields = ...
ReZa's user avatar
  • 1
0 votes
1 answer
35 views

Different date time in results of search

In my search.php file i have a loop which succesfuly gives list of search query. global $wp_query; $total_results = $wp_query->posts; if ( $total_results ) : foreach ( $...
X9DESIGN's user avatar
  • 169
0 votes
0 answers
68 views

Product Search by ZIp Code Radius

I am building a marketplace that will allow vendors to subscribe and list products similar to an amazon or etsy. I want to implement a product search within the header that will allow customers to ...
Allie B's user avatar
0 votes
0 answers
18 views

Organizing media files (pdf) and searching based on the folders created

I am attempting to find a way to search through sorted PDF files inside the media section of WP. My goal is to be able to set up different search engines within my site that pull from specified ...
M. Dave's user avatar
0 votes
0 answers
9 views

URL syntax for searching post titles only (for RSS following)

I am following a Wordpress site via the native RSS feeds for search result queries. For example: https://site.wordpress.com/search/ticket/feed/rss2/ But this seems to be searching all posts' content ...
Crabgrass0899's user avatar
0 votes
1 answer
15 views

Google indexing pages that are not used

I am using wp site that was built on template downloaded from internet and uploaded demo content of theme. There are bunch of pages that I am not using. They can not be accessed from website but I see ...
Ivan Galić's user avatar
0 votes
2 answers
104 views

Removing filename searches when searching attachments

My website's db is quite big. I have some 350,000 images in the media library (as well as some 350,000 posts). My wp_postmeta table has 4,580,552 rows. As a result, some queries are insanely slow and ...
Biranit Goren's user avatar
0 votes
0 answers
76 views

Block Spam Internal Site Search Indexed in Google and Redirect to Specific Page

Recently, we've been bombarded with thousands of spam search queries via our internal search, and some of them have been indexed by Google, despite our attempts to block them using the 'no-follow' ...
Javid's user avatar
  • 1
2 votes
1 answer
144 views

Search with indexing and linking to PDF content

I need to implement a search functionality that makes the content of a PDF file indexable and links directly to the selected content area of the search query. Is that even possible and what is the way ...
tinytree's user avatar
  • 121
0 votes
1 answer
24 views

Exclude in search post and include only 3 pages

I need that when a costumer search in my page, it includes only post but I need to included 3 important pages too... It is possible. For include only posts I have this code, but now How can include 3 ...
Laurapnunez's user avatar
0 votes
2 answers
96 views

How to Display Content from Search URLs on Permanent URLs in WordPress?

The search link for a WordPress website looks something like this: https://example.org/?s=seo or https://example.org/?s=blogging. For certain specific pages, I prefer to use permanent links. For ...
Ranuka's user avatar
  • 1,794
0 votes
0 answers
30 views

Search results not finding in paginated pages just in visible rows

I created this plugin to display a list of registered users with the Faciliator role. Displays the list in a table with name, country and avatar as titles. It works fine but the search box only ...
Artus's user avatar
  • 92
0 votes
2 answers
62 views

Exclude multiple custom post types from search

I'm trying to exclude a couple of custom post types from search results. The following works for one post type: // Exclude custom post types from search add_action('init', '...
Glasshalfpool's user avatar
0 votes
0 answers
11 views

Search Filter by mime type not working in pre_get_posts

I'm trying to create a search option for users to display only PDF attachment posts. The following works to display all attachments: function CustomSearchFilter($query) { if( (! is_admin() ) &&...
jchwebdev's user avatar
  • 775
0 votes
0 answers
140 views

ajax select parent show child in another select and show posts in another select-ajax filter search

I'm on wordpress and I created a search filter shortcode which user can select province and show towns on another html select base on province and when user select town, in another html select it must ...
Alipvd's user avatar
  • 3
0 votes
1 answer
147 views

Display search results within the same page in wordpress

How can I display the search results on the same page where I have put search form?
Radheeka Chopda's user avatar

15 30 50 per page
1
2 3 4 5
37