Questions tagged [search]

The method by which users find information on your WordPress site

0
votes
0answers
7 views

Search box to filter large list of images

I have produced thousands of png images and organised them into two folders on my server as follows: 1901/ John.png Michael.png James.png Mary.png Jane.png 1911/ John.png Michael.png ...
0
votes
0answers
11 views

Special character Wordpress search problem

i am faced with the following problem when using Wordpress Search. If i create a post titled "Try Something", with body "Hello testing t&y thank you". If i now take a look in my db, i see that ...
0
votes
1answer
34 views

Remove pagination if search returns empty

I made a fix that when the searchbar is empty, it returns 'No results', instead of all posts, but the pagination still shows up. Does anyone know a fix for that? My code search.php: <div class="...
0
votes
1answer
42 views

Custom Post type doesn't appear in search results

I am working on a plugin where I am adding a custom post type and inserting its posts based on wp_insert_post function once the plugin is activated. The problem is that the custom post types cannot ...
-1
votes
0answers
30 views

Searching for text in private blog

Once logged in to a private wordpress.com account, is there a way to search all posts for specific text? I was just informed this question does not meet your quality standards but do not understand ...
0
votes
0answers
17 views

Modify wordpress search to search only pages and load matched page not search results

I am currently working on na project which requires a modification to wordpress search functionality. I would like to modify it in this manner to make wordpress search only page titles. to make ...
-1
votes
0answers
9 views

Wordpress Search for all pages under a subdirectory

I set up this website with a theme that creates User Profile Page and creates page URL: website.com/author/USERID/ However, this theme does not come with a User Profile search. (Theme is Realto ...
0
votes
0answers
26 views

Category of search results

Would it be possible customise the search results to add the category after each search result? Something like: Search result 1 Category A Search result 2 Category B Search result 3 Category A ...
0
votes
1answer
17 views

How to avoid bypass of search bar rules?

I’m building my site locally. Since I want users to be able to write only specific terms in the search bar, I put a jQuery script in the wp-content\themes\sitename\js folder. The script works fine, ...
0
votes
1answer
7 views

Restrict WordPress search to a single ACF field

I've used the following filter to include an ACF field into my search results. add_filter( 'pre_get_posts', 'so_9224493_adjust_search_query'); function so_9224493_adjust_search_query( $query ) { ...
0
votes
0answers
11 views

search results to show individual ACF fields from inside custom posts

In need of some help. I have my search results showing the custom post type with all the ACF fields inside. What I want is the search result to show the ACF singularly with a field name of file_name ...
0
votes
0answers
21 views

Numericals in my URL

My URL looks something like this: https://agencypedia.com/?llocs=jaipur&lcats%5B%5D=169&post_type=listing This is because of the latitude longitude thing in the theme. How do I fix the URL?
0
votes
0answers
31 views

WP_User_Query Search Multiple Keywords from a Multi-Select Field?

My code below works to list a single user when I ask to search for a single username; however, I am unable to list multiple users when asking to search for multiple usernames. Here is a brief ...
0
votes
1answer
24 views

Display the search results like the original pages

I'm creating my site (locally) and I'm using the starter theme underscores.me I created few pages using bold, italic, and other text styles, but I noticed that in the Search Results page, the content ...
-1
votes
0answers
17 views

How to search for WordPress users with different search / wildcard requirements?

I would like to search for WordPress users across 2 different fields: user_login - exact match display_name - wildcard Below is our current implementation; how can this be modified so each search ...
0
votes
1answer
20 views

Search query with quotes

I'm trying to search through WP_Query in wordpress, in custom post types. I have this request $wp_query = Wp_Query(['post_type' => 'property', 's' => 'test']); This works perfect. but when my ...
0
votes
0answers
19 views

Post title value with colon causing search issues

Hoping someone can help shed some light here... I have the following titles: Icons & Innovators: Norman Lear Muslim/American: Halal 44 Charlton: Pride I am using the native WP search. The ...
0
votes
0answers
6 views

Looking to add a specific kind of custom post search

Recently my site changed themes. The old theme had a built-in staff directory plugin with a specialized search that had two features we now miss: It autocompleted staff member names. It allowed you ...
0
votes
0answers
18 views

pulling in external JSON search results into WordPress

I want to retrieve search results from a search appliance that gives results in JSON format. Interacting with the form below takes the user to a page of JSON data. Instead, I want to take the search....
-1
votes
1answer
25 views

How do I change WP search results order?

By default WP sorts newest Posts at the top of search results. I’m using WP Posts as a Members list for a sewing referral group. The search results need to be in order of seniority, so the oldest ...
0
votes
1answer
12 views

How to exclude a part of a page in search results

I did my WordPress website design with Elementor plugin and i included a menu in the side bar of every page, now i face a problem with search results because searching any word from the menu gives a ...
0
votes
0answers
15 views

Is It Duplicate Content ? (Shop Page & Search Page)

My website has /shop page, created by woocommerce by default which lists all products. My website has /search page, created by me which list products (optionally it takes a search keyword, if no ...
0
votes
0answers
18 views

Search to another page

I need a bit of help and been scratching my head with this one. So i have a main page and would like a search box but this search box to only search to another page so I have page number 5106 ...
1
vote
1answer
39 views

How to make a search form?

I'm taking my first steps in wordpress, pretty newbie. and I find that I want to make a search form with its own styles and a little javascript to redimension. So I do not know how I should proceed in ...
0
votes
2answers
18 views

making users.php search include a specific user meta data field without messing with the SQL query itself

I'm tyrying to let the admin search through the users by a single meta value called 'indice de busqueda' insithe the wordpress /wp-admin/users.php page How can I hook into the search box in such a ...
0
votes
0answers
11 views

Wordpress Search function to include external website

I need to build a search form with two radio buttons. One is to search the Wordpress site and the other is to pass the search value to another website via a query string. The current live site is ...
0
votes
0answers
9 views

Creating a custom search form for custom data NOT for custom fields, categories, taxonomies

How to create a searchable database with a single-field search box in the front end? I have a client who is announcing a recall of one of its products. They are looking to have a single-field search ...
0
votes
1answer
45 views

How to use jQuery validation to set the search bar to accept only a specific input?

I'm new to the wordpress world. As a starter theme I was suggested to use the basic one given by underscores.me. The search bar is fundamental for my site, so I would like to customize it in order to ...
0
votes
2answers
42 views

How to search from specific post type with tags?

UPDATED: I have a Custom Post Type Commercials. This post type has a title and a video id. I want to search from this specific post type. Right now it returns result which matches the titles only, I ...
0
votes
1answer
13 views

Absolute search against wordpress api

I am using the below to search to check if a product category is already created $params = [ 'search' => "category1" ]; $searchedparaCat = $woocommerce->get('products/categories', $params); ...
0
votes
0answers
20 views

How to block specific keywords from searching and redirect them to custom page on Wordpress?

I'd like to block some specific banned keywords from searching and redirect to custom wordpress page when someone search these specific keywords on WP. I'm gonna use the below code for banning these ...
0
votes
0answers
21 views

Order by WooCommerce product attribute doesn't work on search page [on hold]

I'm using Advanced Woo Search Pro version search plugin and I am sorting using custom product attributes, it works fine on product page but on the search result it doesn't show the right order: it ...
0
votes
0answers
21 views

Extend Woocommerce search by custom field value

From what I see, the Woocommerce search engine searches by the title and the content. I would like to add a search by custom field value I have read many posts with a similar problem. A lof of users ...
0
votes
1answer
38 views

How to block specific keywords from searching on WordPress?

I'd like to block some specific banned keywords from searching on WordPress. Or I'd like to show a redirect when someone search specific keywords. How to do?
0
votes
0answers
26 views

Not expected result with multiple search terms in wp_query

I have WooCommerce installed and I'm trying to find products with size "60x60". Sometimes in title were used normal x symbol and sometimes it's a cyrillic х. Now i'm trying to find all products with ...
0
votes
0answers
11 views

Exclude specific pages (not posts, and not all pages) from search?

In particular, I don't want password-protected pages to show up in search, but it would be good to know how to exclude additional pages as well, while allowing others to still show in search. I've ...
0
votes
2answers
23 views

Include future posts in tags and in search

I am using something like this to query and display future or scheduled posts on my homepage: <?php query_posts('post_status=future&posts_per_page=10&order=ASC'); while ( have_posts() ) : ...
0
votes
1answer
44 views

Hide products in uncategorized category from search results

I have about 20000 products and I am using electro theme. All of them belong to uncategorized category (id: 979) and most of them belong to other categories also. I want to hide from the search result ...
1
vote
0answers
12 views

Woocommerce custom search

I want to build a search form on the homepage where people can search by Product Name Product Category Price range I have found a few results, but a lot of them are filters which display products. ...
-1
votes
1answer
19 views

Help with showing text when something is entered in my search bar

I'm having troubles replacing text when there is something entered in the search form. As you can see in the image below i want to replace 'mijn gemeente' with the get_search_query text if i'm ...
1
vote
0answers
18 views

Meta query: How do I return posts within a date period from a given month?

I have posts with a meta start_date and a meta end_date, stored in timestamp format (I can change the format if necessary) I would like to return all posts that have a date in that month by giving a ...
1
vote
1answer
38 views

How to load WP categories into array for autocomplete?

I am currently making a new site and i am stuck with the autocomplete for the standard search form from wordpress. Anyone knows how can i load my wordpress categories to use in this script? Its a mix ...
0
votes
0answers
13 views

Search results don't show products just posts

my website is a woocommerce site and it has blog posts and some pages. My problem is the search box. Everytime I searched it only shows the posts and pages results. It is not showing woocommerce ...
0
votes
0answers
18 views

How correctly send array data from checkbox in GET

I have a simple search form in which are category checkboxes. echo '<label><input type="checkbox" value="'.$category['id'].'" name="category[]">'.$category['name'].' </label>'; ...
0
votes
1answer
10 views

members only products

i'm looking to setup a website and would like to know if the Wordpress platform can accomodate these requirements. I need a members only area and I need the ability to sell certain products ONLY to ...
0
votes
0answers
10 views

Customize “Search Submissions” for a CPT

In wp-admin, when viewing all posts of a CPT type, there is a "Search Submissions" textbox and button. I believe by default this searches the content, title, and a few other common fields. I'd ...
1
vote
0answers
27 views

get search results from only specific page name in wordpress

I have created a page by using add_submenu_page: add_submenu_page( "pharma-plugin", // parent slug "All Trade Name", // page title "All Trade Name", // menu title "manage_options", // ...
0
votes
0answers
6 views

Use Gravity Forms / Last Forms as a search to display custom post types

I am trying to create a site that allows users to enter their requirements and be displayed with a list of finance options that can help them. I really like the look of last forms/gravity forms. Can ...
0
votes
0answers
30 views

How do I search WordPress posts by categories and tags in addition to title and content?

I would like to expand my site's default search fields (title and content) to include categories and tags without installing a plugin. Including the below code in functions.php allows me to ...
0
votes
0answers
18 views

Search Results not displaying for multiple words ( more than 2 words) search

Searching for a single word works as expected. Searching for multiple words that should have returned results shows blank results. Manually changing the "+" character in the URL to "-" displays the ...