Questions tagged [search]

The method by which users find information on your WordPress site

Filter by
Sorted by
Tagged with
0
votes
2answers
15 views

Form for search pages by meta datas

Hello I need a form in one wordpress page where an user can search pages by specific meta data. I found how to do search: https://rudrastyh.com/wordpress/meta_query.html#query_meta_values But how ...
0
votes
0answers
17 views

Want to Display “No Results Page” When There Are No Results for a Particular Month

I have very minimal experience with PHP and am looking for a way to redirect to a "No Results" page when a date is selected with no results. Currently, when you select a date with no results, all ...
0
votes
0answers
13 views

How to make search instant results appear in front of other elements?

I have a search form with instant results but when there are results, it goes behind the HTML elements below it so how can I make sure that instant results appear in front of those. The error occurs ...
-1
votes
0answers
25 views

Wordpress search meta title problem

I'd like to start by saying that I only have a basic understanding of html/php/css, but I've been managing pretty well. My wordpress site uses a theme called "ListingPro." When you make a search on ...
-2
votes
0answers
13 views

user search filter base of country state city wordpress

i need a feature like search members on basis of country-state-city along by name on frontend member page in wordpress.?(dynamic) it almost like product filter in woocomerce but i need the same ...
-1
votes
0answers
16 views

how to change name of site in search results

I am a newbie to this and cannot figure out to change the name of site how it appears on google search results. For example it has the icon of the planet and next to that my site domain xxxxxx.com. ...
0
votes
0answers
14 views

Change Image in Mobile Search Results

When searching my company, "Tattini Boots", on a mobile device you will see that the following cut off image is displayed next to the search result (see image below). This is not the image that I have ...
0
votes
1answer
16 views

Replace URL with Site Title in Search Results

When searching my company on a mobile device "Tattini Boots". You can see that the URL is displayed vs. the site title at the top (view image below). I am using Wordpress and was wondering where ...
0
votes
0answers
11 views

Need to return a list based on Slug

I need a search field to return only a specific slug when the user types it. Basically, I need to create pages for students and each student page will be displayed only when user types the page slug ...
0
votes
1answer
28 views

What are the available options for “Name” in WP search?

I am trying to find the list of available values for name in the search to filter results. So far I have found name="s" is the default name="cat" is for categories and name="post_type" is for post ...
0
votes
0answers
20 views

How to display custom search results from a selected category of a custom post type?

I have a website that has a blog and a custom post type called proyecto. They are on mywebpage.com/blog and mywebpage.com/portafolio.Each of those pages have a search field and category dropdown ...
-1
votes
0answers
13 views

trying to highlight search results

I am trying to highlight search results of the content, but also only show the sentences where the search result terms show up. For instance, if I search for 'Test', there will be pages with the ...
0
votes
0answers
13 views

how to make search with two input boxes

<input type="search" id="<?php echo esc_attr( $unique_id ); ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'twentytwenty' ); ?>" ...
0
votes
0answers
9 views

Woocommerce Backend Search by Title and SKU

Good morning, i'm trying to extend backend product search by using this function without success. This snippet works only in Title and i need to add also in Metakey SKU. I have tried extend by using ...
0
votes
0answers
14 views

ACF Custom user field in search query

I have created some field in user section, Now i want to search user by custom field. Like Phone of City Name. While search by first name and last name is working fine by could not get user by phone ...
0
votes
0answers
10 views

Include dynamic generated pages in Wordpress search

I am creating 7-8 pages dynamically based on a JSON response from recruitee and want to include those pages in my search so that if someone is searching for "webdev" matching results are getting shown....
0
votes
2answers
47 views

Remove “All categories” from searchbar dropdown

I have been struggling with this and could not find a clear answer online. Will putting a product search bar I have a dropdown visible with all the categories you can search in. I would just like to ...
1
vote
0answers
11 views

Automatically adding category filter based on search string

Like ebay and amazon, i want to implement something on my site wherby if someone searches e.g red dresses then the category "Women's dresses" is only searched within. As seen as below, a generic ...
0
votes
1answer
16 views

WP Query search for attachments and their exact title

Due to lack of reputation, I must now ask the question. I want to create a search for all images in the media libary. The search result should only appear if you search for the exact title of the ...
0
votes
1answer
11 views

Search for categories

I would like to propose on my site a search engine allowing to find categories (with suggestions), and not posts or pages. I tried different plugins, including ajax search lite, but without success, ...
0
votes
1answer
13 views

Wordpress search with more input fields?

I have this example of working search: <form action="<?php echo esc_url(site_url('/')) ; ?>" method="get"> <input type="search" name"s"> <input type="submit" value="search"&...
0
votes
0answers
5 views

Pretty Search URL by using the Root of the Site

I'm new with Wordpress and PHP, I know enough to get myself into trouble but still lots to learn. I'm trying to make my search url look like this "https://domain.com/search+terms" Currently I've ...
0
votes
0answers
35 views

How I could save IDs of search results of FacetWP in DB?

I would like use FacetWP along with ACF in order to create Questions as CPTs that will have difficulty, grade, rating and other like that fields and I want to be searchable using WP AJAX. Those ...
0
votes
0answers
29 views

Search in wordpress with keyword and meta key

I want to perform a search in wordpress custom post type like this : search a keyword that exists in the post content in a specific category and much a meta field called city. <form> <...
0
votes
0answers
16 views

How to rewrite search requests to the site URL so that they go to the home URL instead?

This site I'm working on has WordPress installed under the subdirectory /2020/, with the home page set to /. It uses a plugin for the menu system and the search bar, but the plugin sets the search bar ...
0
votes
1answer
16 views

Altering search results to handle a post meta field not working in current WordPress

I have the following code (based on examples from various other places on the web) It's definitely updating the query but it just doesn't return any results. Am I using the wrong hook ? function ...
2
votes
1answer
20 views

How to change users smart quotes to dumb quotes in search bar?

I have a problem where smart quotes (curly) will not return any search results but dumb quotes (straight) will give what I expect. I would like to give all users the same experience so I need to ...
1
vote
1answer
62 views

Search not working with title and content

I am working on search. I am able to search post by tag and category but not able to search by title and content. I tried below code but it's not working. Would you help me out? $getSearch = ...
1
vote
2answers
31 views

Search the product by tag or category not working

I am working on search. I am trying to search the product by tag or category. I tried below code but it's not working. I am getting Nothing Found Also title and content is also not working. ...
2
votes
1answer
15 views

Making a list of post tags in string

I am trying to push post tags to the search index of the WPFTS plugin in order to search my posts by tag names. To achieve this, I have to generate a string with all tags. Here is what I tried: ...
0
votes
0answers
21 views

Wordpress REST API Search decoded URL with cyrillyc symbols

I'm trying to use REST API search opportunity with string: https://example.com/wp-json/wp/v2/posts?search=searchquerry, but it doesn't works with decoded url and cyrillyc symbols. For example, if I ...
1
vote
1answer
23 views

Wordpress isn't reflecting changes I make to a specific file via FTP [closed]

Hello, I'm new to Wordpress so please let me know if there's any vital information I've left out. I've just migrated from my localhost to online: there were a few bumps but after fixing some paths ...
2
votes
1answer
29 views

How to avoid the specific page while searching in WordPress without plugin?

I am using WordPress search which is working but I am getting one issue on the search result. My issue is, when I search my product then I am getting the output but it also displaying the privacy ...
0
votes
0answers
18 views

Slow wordpress search page

When I search on my wordpress (woocommerce) it takes 50 seconds to load. According to Query Monitor the problem is this query. SELECT wp_posts.ID FROM wp_posts LEFT JOIN wp_postmeta ON (wp_posts.ID = ...
2
votes
1answer
88 views

Block search SQL from happening

I need to block some accesses to search results not the whole page, just the results. The problem is, I need the search SQL query to not happen AT ALL. (I can conditionaly hide the output loop ...
0
votes
1answer
19 views

Search issue on special Character

I have imported posts from RSS Feed and then on word press default search if i search Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum – Lorem Ipsum Lorem Ipsum Lorem Ipsum It shows me ...
1
vote
0answers
13 views

Getting to a specific page on website using specific code instead of navigation bar

Is there a way get to a specific page on a WordPress website by entering in a code instead of going through the navig
0
votes
1answer
26 views

Create a shortcode for native WooCommerce search form [closed]

How can I create a shortcode for the native WooCommerce search form, so that it can be used elsewhere? In the secondary menu, for example.
0
votes
0answers
21 views

search based on custom field value

The default search functionality in wp searches only the content of the posts/pages. But I have categories which have posts with custom fields (I have used advanced custom field plugin for it). How to ...
0
votes
1answer
41 views

Search only one custom post type

I've been reading several different articles/posts to see if it could help me with my problem, but no luck so far. My goal is to make a custom search for a custom post type: restaurants. When I'm ...
0
votes
1answer
34 views

search based on custom field

My question is, is there a way to configure wordpress' search to, within a custom post type, search for a custom field value. //------------html code--------------------// <input type="text" name="...
1
vote
0answers
16 views

Change Search url slug for each site in a multisite network

As per the title, how would you change the search url for different sites in a multisite network. eg: testsite.co.uk/search testsite.de/suchen testsite.fr/recherche I can change the search term for ...
0
votes
0answers
31 views

Wordpress search not able to find the category

I have 3 to 4 categories on my website. I am using WordPress search but when I am searching my category then I am getting Nothing Found also, I tried to search the subcategory then also I am ...
0
votes
0answers
29 views

Sort the RSS keyword first by title

As follows, I'm taking a feed from my wordpress blog site. https://www.sitename.com/blog/feed?s=KEYWORD The results are coming, but the sort is not what I want. Currently sorted by last added date. ...
0
votes
0answers
15 views

How to prevent the search results page from using my single-{post-type}.php template

I have created a custom post type which uses single-{post-type}.php to display when ever a page of that particular post-type is viewed and this works fine. When the search form is submitted the ...
0
votes
1answer
48 views

How to search through “post title” and “tags” using WP_Query?

In my custom search form, i'm currently using these kind of $args with my WP Query: $args = array( 'post_type' => 'post', 'posts_per_page' => $postsPerPage, 'offset' =&...
0
votes
1answer
11 views

How to create custom search form function including post “tags”

This is my HTML: <input type="text" class="keyword" name="keyword" id="keyword" placeholder="Search video..."> <button id="search-keyword">Search</button> When I click the "Search" ...
0
votes
0answers
36 views

How to make a custom search form with date range? (Using Timber)

I have to create a data range search for my site with two input (start-date, end-date). I'm using Timber and i have no idea how to do it. Here's my code in search controller. How can I implement this ...
0
votes
0answers
20 views

Filter search results to the archive page it is being used on

I am trying to create a shortcode with a search form that will allow the user to get filtered search results based on what page the search is being used on. ie: If it is used in the blog archive, and ...
0
votes
0answers
14 views

Searching content in a PDF file

I would like to add the ability to search the content in pdf files by site visitors. I would like to make it easier for visitors to search so that they don't have to use the CTRL + F keyboard shortcut....