The method by which users find information on your WordPress site

learn more… | top users | synonyms

0
votes
2answers
19 views

Using if statement in index.php instead of creating separate template files

I've to add just a line when the user clicks on a category link or search for something, so I thought to do something like this inside the index.php instead of creating other template file like ...
0
votes
1answer
19 views

Can't load search results with ajax

I'm trying to load search results on my page without reloading. I tried multiple approaches already, but I still can't make it work, despite using someone else's confirmed solution. Please find the ...
0
votes
1answer
11 views

How to restrict search on a certain page to only return results against custom taxonomies?

On a specific page, I would like the search to be performed only against the terms from two custom taxonomies. Not the content or title. That is, the user is directly searching taxonomy terms. What ...
0
votes
0answers
7 views

How to create a wordpress search with ajax with Relevanssi - A Better Search plugin

I am using Plugin Relevanssi - A Better Search for search with only words and phrases not only letters matching.And now need to change the search and create it with ajax but didnt know where to start, ...
0
votes
0answers
14 views

Menu widget not showing on search.php page via get_header(); function

I have the following code in the header.php file which renders the main menu: <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Main Menu')) : else : ?> ...
0
votes
1answer
23 views

WordPress Search Custom Meta Field Only

I have a recipe site where each recipe resides in a custom meta field called "recipes". I only want the contents of the meta field searched when users search the site. The problem with my code below: ...
0
votes
1answer
12 views

Custom search page and url in multilanguage

I just made a custom search page for my website in Wordpress. But I have an issue: Case 1: mydomain.com/?s=test....Work Case 2: mydomain.com/search/test....Work Case 3: ...
0
votes
0answers
6 views

Making the search results more relevant

I have setup up my WooCommerce shop so that I have all my SKU's in the tags of the product, so that when a user searches for a SKU they find what they're looking for (unbelievably this isn't standard ...
0
votes
0answers
20 views

Display posts list in a table with search

I am new to wordpress, and I need to display a table in the frontend with list of posts and a search functionality. Is there any custom code to do both the functionalites(listing and search)? NOTE : ...
0
votes
0answers
16 views

Is it possible to use an OR (instead of AND) between tax_query and s (search) in a query?

In the following example: $search = 'thing'; $query = new WP_Query(); $query->query( array ( 's' => $search, 'tax_query' => array( array( ...
0
votes
1answer
23 views

How do I add a search bar to my header?

I need to add a functioning search bar to my header. I have read through the forums but am unsure what code I need to put where. For instance, where do I put the css code versus where do I put the ...
0
votes
0answers
16 views

Create front-end input field based on search - auto-complete - select?

I'm trying to create a front-end category input field with auto-complete (search - auto-complete - select). I have around 35000 categories. What's the best way to do it, without slowing down page load ...
0
votes
1answer
22 views

Search buddypress groups with querystring in url

If you wanted to search groups in buddypress you can simply navigate to (http://sitename/groups/?s=searchstring) But is it possible to pass other parameters to url like ...
0
votes
0answers
24 views

Search form not working as expected

I've made a search form with dropdowns and when I select an option from each one it does not display any results. I've been trying to change the wordrpess search query but with no luck until now. here ...
0
votes
1answer
48 views

Search one custom field?

In posts there is in custom field named "color". I have custom search page template, and I would like to show search results only from that one custom field. How to limit search to look just in one ...
0
votes
1answer
11 views

Search Page: activate html code if the tag is on the page

this is the first time that I write here and my English is not very good, I will try to explain as best as possible. I want to activate some html text if in the result page, the results, has a ...
0
votes
1answer
30 views

Create custom query for search?

I have create search box using ajax.If i enter any value in search input box that this value search in post title or post meta data and get all data of this value in custom post type.also query check ...
0
votes
1answer
14 views

Searching my on my blog is not working

I've been trying for hours if not a day to try and get my custom search.php and searchform.php to work and still no success. I've read a lot on these two templates and still no success. Here is my ...
0
votes
0answers
29 views

How To Have An Array Accessible from anywhere on the site?

I want to have an array that is dynamic that is accessible from anywhere on the site. My reason for having this is not to run a database query. Example: We start with array('cat' => 1, 'dog' => 2) ...
0
votes
0answers
25 views

Adding keyword to meta key search

With the help of some users on Stack Exchange, I've built a custom faceted search which searches quite a large list of custom fields using drop down selectors. I'm having difficulty adding a keyword ...
0
votes
0answers
16 views

Add a class or id to the category search field, force people to select a category [searchform]

I am using a search form which is category field available. I'm looking for a solution to add an id into the category field. I tried to get it work by myself. But, it turns out to be error. ==" I got ...
0
votes
0answers
21 views

include custom fields in search sql query

here is my sql query: add_filter( 'posts_where', 'title_filter', 100000, 2 ); function title_filter($where, &$wp_query){ global $wpdb; if(isset($_GET['s'])){ ...
0
votes
1answer
21 views

Custom search results

I have a Wordpress custom search form which is used to search for floors into various buildings. For example, when a user searches for a floor between 1000 and 1500 sq ft, he will get a list of all ...
0
votes
0answers
33 views

Unexpected WordPress search results

I'm making a simple project management plugin. I want to have a AJAX powered search feature for the projects. I have it working kind of. It just a simple search form. <form ...
1
vote
0answers
19 views

Get Adjacent post by search query

I want to get previous/next post, but to keep that within the same search query (I keep the searched terms from the previous page via the URL.) Is there any way to do this? It doesn't seem to be in ...
0
votes
1answer
33 views

Integrate Algolia to WordPress site

Algol released this on their website: https://github.com/algolia/algoliasearch-wordpress Which is supposed to allow us to integrate it to a wordpress site. However, I don't understand how am I ...
1
vote
3answers
90 views

Separating Search Results By Post Type

Original question: Seperating Custom Post Search Results I've tried to implement this code to my website, but i have some problem with it. What i've changed is i've added another switch for third ...
0
votes
0answers
55 views

How to hook into search results template or query?

I am looking for a way to hook into the search results from a regular Wordpress site search and make changes either to the display of the results themselves (by hooking into search.php somehow - not ...
0
votes
0answers
12 views

How do I add a search function in pages/posts that behaves like ctrl-f so users can locate specific keywords in a large data set?

I have some very large pages and I want the user to be able to search for a keyword and quickly jump down to the keyword in the text (including image captions) exactly like ctrl-f behaves in the ...
0
votes
0answers
31 views

Add custom field to string URL query

I recently took over a wordpress site from a former employee and I have 0 experience with this CMS aside from creating child themes. That being said, I'm trying to allow my search page to list out all ...
0
votes
1answer
36 views

two search forms on the same page

I have a mobile and a large screen search field. I am trying to load these both on the same page. I am using JointsWP Starter theme. Here are the functions: function joints_wpsearch($form) { $form ...
0
votes
0answers
41 views

How can I paginate search results from search in custom plugin and tables?

I've been trying to get this done for hours now and it's just not working. I have a custom plugin that has a search box on the front-end that one can use to search for data from my custom tables. ...
2
votes
1answer
26 views

Sitelinks Search Box in Google and urlencoded search string

I've recently implemented the Sitelinks Search Box and I'm having problems with search terms and special characters. For example, if I indtroduce an accented character in the standard search box from ...
0
votes
1answer
19 views

Changing the search results destination URL

Sorry for the basic question, every Google query I try yields no useful results. How do I change the search results directory in Wordpress? Currently all searches need to be on the root to produce ...
0
votes
1answer
31 views

Best way to create a search for custom post type by custom field values

I have a custom post type called people. I want to have 3 search fields for; first-name, middle-name and last-name I was thinking about creating a page with my own search boxes and use query_posts: ...
0
votes
0answers
29 views

Search prices using drop-down range with WP Search Custom Fields plugin

I've built a search form using WP Custom Fields Search. The form searches a number of custom fields, all of which work perfectly.. except for one. I've set up a field in the search form with the ...
0
votes
1answer
32 views

Custom slug in front of search URL

I'll try explain this the best I can... I have a search form on my homepage: <form role="search" method="get" id="searchform" class="form" action="<?php echo esc_url( home_url( '/' ) ); ...
0
votes
0answers
12 views

Search within multiple authors posts with Relevanssi

Is it possible to search within multiple authors posts? When I try to create a array and pass it to the query it gives me: explode() expects parameter 2 to be string, array given in ...
0
votes
1answer
13 views

I've messed up the admin search functionality. Help!

This all started because, on the front-end, I wanted the search query to include terms from taxonomies and custom meta. So, after a google, I found the following code which I added to my functions ...
1
vote
1answer
59 views

WP User Query with search columns and meta query

I'm trying to build a query with WP User Query where it's possible to search after user_email user_nicename first_name last_name This are my args: $args = array( 'role' ...
-5
votes
1answer
89 views

Search is always exact [closed]

I'm pretty green to WordPress (and with the work I've been doing in it, my reasons for avoiding it seem to have been justified), and one of the problems I'm having is that the post search is always ...
0
votes
0answers
31 views

Creating search.php for Wordpress with custom fields feature

I have seen a Wordpress site which has below features in its search.php section. http://www.example.com/category/film/?directors=Brad%20Anderson ...
1
vote
1answer
48 views

Search results ordered by custom post types are not grouped

For a WordPress website I have a couple of custom post types, named cities and books, and also the regular blog posts. I have customized the search results (only search in the post title) page so that ...
0
votes
1answer
96 views

WP_Query with custom post type search showing all results every time

I'm working on building a search form for some custom post type. Problem is, the search yields the same results every time, which is all posts of that custom type. Please advice: Code: Search form: ...
0
votes
1answer
23 views

Custom URLs in Custom Search Results

I need your help with Custom URLs in Custom Search Results (Wordpress). I have this URL http://domain.com/?s=&categories=489&locations=310 which get me search results. I can replace IDs with ...
0
votes
0answers
22 views

How to build a category and area search engine [dropdown] for specific table on wordpress

I am a web designer and a starter on php. I wants to develop a city information based site on wordpress. I found a similar site which I wants to develop but its on asp.net and the site url is ...
0
votes
0answers
113 views

Limit Search Queries per IP per Day

I have a small website keeps several pdfs, but to prevent having all of the pdfs slurped up by someone's script (and to keep track of popularity of each file), I am requiring that people enter the ...
1
vote
3answers
50 views

How to search map address in custom post type?

I built a custom post type "shop" with Custom Post Type UI plugin and added a field "address" (Google Map type) with Advanced Custom Fields plugin. From the response of WP_Query('post_type=shop');, I ...
0
votes
1answer
43 views

Save search criteria per user and show on custom user page

I have a property website with a custom search form for minimum and maximum square feet. A registered user executes a search with a min(i.e. 150 sqft) and max(i.e. 300 sqft) select option value. I ...
0
votes
1answer
34 views

Search format not matching taxonomy query

I have inherited some code in this project. This search works. I can click on each individual taxonomy and see the results displayed on my page. However, I would like this to extend the search rather ...