The method by which users find information on your WordPress site

learn more… | top users | synonyms

0
votes
1answer
27 views

How to add search to meniu?

How to add search to meniu? I want to have: add_filter('wp_nav_menu_items','add_search_box_to_menu', 10, 2); function add_search_box_to_menu( $items, $args ) { if( $args->theme_location == '...
1
vote
1answer
19 views

Search query -> Show all pages except certain template

These are my arguments for the search query: $args = array( 's' =>$s, 'post_type' => array( 'post', 'p24_cases', 'page') ); Using these arguments, the search results will show all pages ...
-1
votes
0answers
9 views

result search find my meta box

Im new in wordpress, I have meta box, and I have a search box, I want my search result find item in my meta box, but its always result post and page. anyone can help me please? this is my searchform....
3
votes
0answers
30 views

How to find objects by terms

I am struggling with a search filtering. Firstly, my script is searching for users using natural search SQL. The query returns ids of users. Now I would like to filter them by terms which are assigned ...
0
votes
0answers
10 views

Search by date range option for links to PDFs

I have a page with a list of links to PDF documents. Each document corresponds to a meeting date. I was hoping to create something similar to how online banking lets you choose a date range in order ...
-3
votes
0answers
15 views

Wordpress - change sorting of search results

the WP product search (WooCommerce) does a search of a term in the title and the product texts. Can I use a snippet in my functions.php to alter the search results in a way that the ones who have the ...
0
votes
1answer
8 views

SELECT SQL_CALC_FOUND_ROWS with wordpress search

When I make a search on my site no posts are retrieved and through wordpress debug I get this error message: WordPress database error: [Table 'theme_se.wp_comments' doesn't exist] SELECT ...
0
votes
0answers
10 views

How to add OR condition in wordpress main seach box Query?

I'm trying to search from main search text box. Custom post type "course" and it custom taxonomy 'Location'. It I search with "USA", In data it looks for 's'= 'USA' AND 'loaction'='USA'. What I ...
0
votes
0answers
9 views

Dynamic Woocommerce Ajax filter

I need to search products using categories and attributes as filters. Basically I have 3 levels of categories and two attributes and I need them to reload after the user selects a value in the ...
0
votes
1answer
28 views

How to make MySQL search queries with quotes

Hi everybody I run a wordpress based website and I'd like to store the search queries called by users to use them as analytics data to know what's most searched etc... So I have a custom table where ...
-1
votes
0answers
34 views

Search takes much time and does not show search results

I want to build an advanced search page in WordPress. It is almost working fine, but when I use all the fields (12 fields) to search a particular post, then it takes much time and also there are no ...
0
votes
0answers
24 views

How to make autocomplete search

Basically i would like to make a autocomplete search form that only work for under a taxonomy. Actually i have created a post type name "property" and there has a hierarchical custom taxonomy called "...
-1
votes
1answer
19 views

Deprecating Wordpress URL from Google, promoting custom domain [closed]

I'm hosting a simple set of information pages at mysite.wordpress.com (anonymized for simplicity). I've purchased a domain -- www.mysite.com -- and have made it my primary domain for mysite.wordpress....
0
votes
0answers
10 views

Realtime filtering of posts in blog view

I'm looking for a way to filter the list of posts by a search term. For example: There are 20 postings on the blog in total. In a search field you can enter a term and without loading a new page you ...
3
votes
0answers
34 views

Creating search filter through plugin

I'm using wordpress for real estate project, for that, I am using a theme together with a plugin (realia real estate) to real estate. So I believe that this not is beside the point ... My question is ...
-1
votes
0answers
14 views

How to display the results of a product search on the standard results page?

I have a site where search results are by default from both posts and products, with options to search only posts or only products. However, if I search products only (&post_type=product), the ...
-1
votes
0answers
29 views

Wordpress Theme linking to a Sharetribe Database

I am a wordpress newbie and am building a site and am keen to use a Wordpress Theme and then link it to a Sharetribe.com database. I do however want to have a multifunction search bar on the home page ...
0
votes
0answers
34 views

Advanced search query select from custom table

Hope that anyone can help me with this problem. I have 7 columns in my tbl2014wines custom Wordpress table. I am trying to create an advanced search feature that allows users to search by wine_name, ...
2
votes
1answer
53 views

How to add custom taxonomy to search

So I have custom taxonomy called "cars". I would want that when user does search, it would also search through taxonomy. Meaning that in "cars" taxonomy if I have "Audi" term and user search with ...
0
votes
0answers
25 views

Woocommerce admin product list extended search

I need to search in product custom fields on admin product listings. The code I am using: Problem that this search only on custom field and now can't find by title or description... what can you ...
1
vote
0answers
44 views

Searching Custom Post Types

I am trying to create a search template to search attachments uploaded to a custom post type called folders. This is what I have so far: if ( $post->post_type == 'attachment' && $post-...
2
votes
1answer
26 views

Taxonomy.php issue with search and filters [Solved]

I'm trying to create a custom taxonomy.php page where my users can refine search into that context. I've tried to create a kind of loop like: <?php if(!empty($_GET['ending'])) ...
0
votes
1answer
17 views

Search plugin form on “Add Plugin” page not working

Search plugin form not working. Steps to produce: admin-> plugin-> Add New. This is used to search plugin but this form is not submitting. Wordpress Version 4.1.1
3
votes
2answers
61 views

Add custom search results to main WP search [duplicate]

I know, this question was asked before several times, but I didn't find the answer suitable for my task. I asked the same question on StackOverflow already, but, I guess, this community is more ...
0
votes
0answers
27 views

Exclude Featured Image Attachments from Wordpress Search Results

I'd like my search.php page to show all attachments except featured images (because they appear as duplicates of the posts that use them). I have seen some examples that do this for a query, but can'...
0
votes
0answers
5 views

How to make autogenerated template pages searchable in Wordpress

I have a client that has hundreds of autogenerated pages that are on the same page template, being on a template and not a standard Wordpress page there is nowhere for the Wordpress search to find ...
0
votes
0answers
19 views

Extending site search to include shortcode output

I wrote a shortcode that generates some HTML content for a page. I want my visitors to be able to find the page that this shortcode is on when they do a site-wide search. But when I perform a site ...
1
vote
0answers
25 views

Posts and Attachments with “Published” status in Search

I would like the search to show only published posts and attachments (the attachments are photographs taken directly from the media library). The trouble is, when I specify that the post_status must ...
1
vote
1answer
20 views

Wordpress Search Results for Multiple Post Types

I want to show both posts and attachments in the search results. Basically, I need something that says if the post has a thumbnail, show it. else show the attachment image (since they don't have ...
1
vote
1answer
23 views

Search pages that are a child of the current page

I'm developing my own Wordpress theme and I was wondering if it is possible to modify the search query in a way that it only return results that are child pages of the actual page. The reason I want ...
1
vote
1answer
21 views

Count the number of times the search form template gets included on a page

I've got a template that has a search form in several locations. Each search form is identical, containing a text input, two radio buttons, two labels associated to the radio buttons, and a submit ...
0
votes
1answer
21 views

Customizing Google's Search box in Wordpress [closed]

I hope I am posting in the right place. I apologize if not. I will start out I am not a coder. The code for my search box can from a tutorial for my theme (custimzr pro). Anyway, I have created a ...
7
votes
1answer
92 views

Development of a Wordpress Search Plugin - Best Practices

Searching for around two days to find an answer to my question, I finally registered for this StackExchange. :) My Question is not simple, so I need to start at the very beginning. But to give you an ...
0
votes
1answer
43 views

How to customize search result page title?

I would like to customize the page title of the search result page: from: <title>Search Results for “search string” – Page 2 – Sitename</title> to: <title>“search string” result ...
0
votes
0answers
11 views

Overriding search from plugin

I have some code that I would like to hook into search.php for all themes on a MultiSite network. It would be written to a plugin so when a search query is run given the conditions are met the code ...
0
votes
2answers
33 views

Echoing home_url() returns current url in searchform.php

In searchform.php my search form looks like this: <form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <div> <...
0
votes
0answers
22 views

Query returning 1 post per page but saying it has 71 pages with almost 1500 results in total

Something is definitely not right here and I honestly cannot understand what it it. After I put this code on one of my custom made plugins, although it makes the search correctly (the result ...
0
votes
1answer
29 views

How to order users alphabetically by name? in plugin UPME

I have this code: <?php class UPME_List_Cards { public $upme_options; public function __construct() { global $upme; add_shortcode('upme_latest_members_list', array($this,'...
0
votes
2answers
23 views

WordPress custom taxonomies new/edit post autocomplete

I hope I can find some help or advice here regarding custom taxonomies auto-complete (maybe there is a ready-plugin but I am not aware of it). I have custom taxonomy which have around 500 items. So ...
0
votes
0answers
17 views

I want to add tag id to search query in wordpress

I have a custom search form which get result like this http://localhost/car/?post_type=cars&vehical=sports-car&manufacturer=truck&country=australia&state=new-yourk By using this ...
0
votes
1answer
37 views

Exclude posts with certain meta data from search results

I'm trying to exclude al posts with certain meta data from the search results but so far it's not working. Here's the code I'm using: function ZoekGeenLegeItems( $query ) { if( is_admin() || !$...
0
votes
1answer
12 views

Auto search field without buttons, shows first result from search page

I need to create special search field in my wordpress site. I need to configure this field like after tap 6 characters field automatically start search and show first result from search page. This ...
0
votes
1answer
106 views

wp_query search not taking keywords with together for multiple words

I am using WP_Query to search results but this is not taking multiple words in AND operation. this is my code $searched_string = $_POST['search']; $the_query = new WP_Query( array( ...
1
vote
0answers
33 views

WP_User_Query search with multiple search queries

Is it possible to perform a WP_User_Query with multiple search queries? Something like: $args = array ( 'search' => '*example.com OR *abc.com', 'search_columns' => array( 'user_email'...
0
votes
3answers
68 views

Custom search for custom post meta with pre_get_posts interferes with WP search

I'm making a custom post meta search with the pre_get_posts function in my Divi child theme functions.php file. The problem is that the final query gathers not only the results for my custom post ...
-1
votes
1answer
11 views

database search feature

I am looking to create a website that creates and searches the created database then displays the results on a custom page. I initially thought this would be a lot easier than it is proving to be. I ...
0
votes
3answers
66 views

How to support multiple search terms query within one process?

For multiple search terms; ?s=hello+world Wordpress work find "hello world" like the_title , the_content posts! And, if our post title Hello Anna wordpress does not get one results! I want to ...
2
votes
2answers
74 views

Filtering search results

I have pages, posts and woocommerce product categories and products in my website. I want to limit wordpress default search query so that it returns the posts, the pages, the product categories but ...
0
votes
1answer
23 views

Search by Attachment ID

I'm building a stock photo page for my company where we upload all photos our staff created so that it can be used later. It shows the ID of the image by post->ID so that users can see it, note it and ...
0
votes
0answers
19 views

Pagination for custom search query

We have written a completely custom search for WordPress as we had very extensive needs for this. The way it works is that when someone search, we execute our own query (custom mysql statement, ...