The method by which users find information on your WordPress site

learn more… | top users | synonyms

0
votes
1answer
15 views

Where is search.php?

I've got a site on Wordpress 4.0.1, and I can't find search.php. A database batch process has applied a template to the default search results page, but I now can't find the page to change it back. ...
0
votes
1answer
15 views

WordPress Search return wrong results

i limit the search in my WP blog to be within post only by adding this line <?php if (is_search() && ($post->post_type=='page')) continue; ?> So any results from static pages will ...
0
votes
1answer
10 views

Search pre_get_posts filter which can handle multiple post types and categories?

I have a Search which allows users to search multiple custom post types (CPT). That works fine. BUT I would like the query to exclude specific tags from each of the CPTs. Eg. Include ( (Posts ...
0
votes
0answers
18 views

Wordpress search query

I used code snippet, from the plugin http://wpadvancedsearch.com/, which works very well, but when I press a search button, it generates the following string in the URL: /?search_query=& and I ...
0
votes
0answers
10 views

custom post types not appearing in Search multiple post types

I have a Search page where users can select to search for multiple post types: posts, pages, docs, newsletter. What is driving me nuts is that: a) Users can select posts/pages OR docs OR ...
0
votes
0answers
8 views

Changing website permalinks leading to search bug?

I have a WordPress 3.3.1 blog, and I'm using the Yoast SEO plugin (if that helps). I went to /wp-admin/options-permalink.php to change the post's URL to be friendly. It worked perfectly but, when I ...
-3
votes
0answers
27 views

Search by order item SKU or ID in Woocommerce Orders Admin page [closed]

What I am trying to do is to be able to search by order item SKU or ID in the Woocommerce Orders Admin page. What I have done till now, but with no success is the following at functions.php file. ...
0
votes
1answer
27 views

use a custom page to display search results

I would like to display the wordpress search results on a page which I've created in the wordpress backend. I need a page, because I've custom content on this page which should be changed by backend ...
2
votes
1answer
35 views

SQL query to get adjacent posts from search query

I'm busy rewritting a custom function I have recently written to get adjacent posts according to a tag, category, custom taxonomy term, author or search value saved in the URL I'm using the structure ...
0
votes
0answers
8 views

Converting hashtags into search friendly term (%23) in a widget

The plugin Hashtag can achieve this within a posts text, so surely its possible on a widget? I have no idea what I'm doing here, specifically its the widget 'Popular searches tag cloud' I am trying ...
0
votes
1answer
30 views

Searching post types

Is it possible to take a user input from a search form, use that to search a custom post type via the WP_Query class and then redirect the user to a page template to display the results? For example, ...
0
votes
1answer
23 views

Blog search just returns to front page (not search results!)

When I enter in a search query in my blog's search box, it simply returns to my blog's front page with URL http://www.mywebpage.com/?s+id%3D=mysearchquery. Here's my search box code: <form ...
1
vote
1answer
46 views

Add custom fields to search

I want to add a custom fields ("introduction" and "ensavoirplus") to search of Wordpress, but the SQL code is not exact. I don't understand if i do a mistake or if WP don't can do this. But my attempt ...
-1
votes
0answers
8 views

Search result giving blank page with pagination

I am working on WordPress website and created a theme from twenty fourteen theme, Now m facing a problem related to search result, When I search any world it gives me result in pagination but content ...
0
votes
1answer
16 views

Is it possible to return a specific tag archive/template as one of the search results?

Is it possible to return a specific tag archive/template as one of the search results? For example, let's say my site has the tag: Summer And my site has the pages: Summer picnicking Fun, fun, ...
0
votes
0answers
17 views

Multisite search - best option?

Probably something like this was asked somewhere already, but I haven't found a working solution yet. I am trying to write a dynamic search for a wordpress multisite installation (max 10 blogs). ...
0
votes
1answer
26 views

query_posts() with multiple meta data comparisons

I have a bunch of posts belonging to category 6, each having the same meta fields. I'm interested in two fields in particular: "pce_monday_open" and "pce_monday_close", both of which have numeric ...
0
votes
1answer
15 views

Search posts missing a particular custom field

I am trying to search for posts that do not have yet set a particular custom field. The problem is that query down below returns an empty result. $args = array( 'post_type' => 'post', ...
0
votes
0answers
16 views

Custom Post Type Search and Redirect

I hope someone can help me, I have been trying to find a solution to this for a long time now. I am creating a kind of Branch finder on a site whereby the user needs to enter their UK Postcode, a ...
0
votes
1answer
18 views

search form display no result

i create a searchform in my footer.php <div id="cd-search" class="cd-search"> <form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( ...
2
votes
1answer
44 views

Conditional tag search-no-results

Is there a way to make a conditional tag that tests if it is search-no-results page? I know that there is a function to check if is_search() page: if(is_search()){ echo "search page"; } But I ...
0
votes
1answer
21 views

Search engine not working

How to display results with title and summary description in landing page of search engine and make it as pagination? If the user type the word "loan", all pages that have a loan word will display ...
0
votes
2answers
15 views

Independent search tool that returns exact match of a post title

I would like to create a very simple search tool that works independently of the regular search. The concept is simple, search all titles of a particular post type for an EXACT match, if it finds a ...
0
votes
3answers
44 views

How to add css classes to widgets?

I need to add a class to the WordPress search widget. How would I go about doing so? I'm calling it from the admin side, as in dragging and dropping it into the sidebar at the widgets page of the ...
0
votes
0answers
36 views

404 error Custom search results page for custom post types with friendly URL

Seen a lot of people with same issue, but no solutions have worked for me, so maybe I'm mislooking something. Page 2 of a custom results page gives me a 404 ( /search works, /search/page/2 doesn't). I ...
0
votes
0answers
39 views

Search for keywords in 3x custom fields and post title within a custom post type

I have create a custom search, where it needs to search within 3 custom fields in one custom post type. I am altering a custom search I paid someone to create, but I'm trying to learn from this an do ...
0
votes
0answers
20 views

Search box in back end on taxonomy select list?

I have a rather extensive list of terms (200+) in my taxonomy. Thus it takes a great deal of scrolling in edit post screen for me to find the correct terms. Is there any customization existing that ...
1
vote
1answer
38 views

changing behaviour of get_search_form

I created a function to display a search box and named it my_get_search_form() that is a copy of original get_search_form() function. when I call the function, the output is this: Search in ...
0
votes
1answer
53 views

How to add add more properties to WP_Post object in search results loop

I am using a plugin called Event Organiser, and it seems that it will only append its custom properties to the post object for all other instances of the WordPress loop except the search. Is there a ...
2
votes
1answer
150 views

If No Search Results, Show Posts from Alternate Search Query

I have a pretty standard loop which outputs "Sorry, No Posts Found" when a search result comes up empty. if ( have_posts() ) : while ( have_posts() ) : the_post(); get_template_part ( ...
0
votes
0answers
20 views

WordPress search results order

Is there any way to change the search results order? For example, I would like to order as following: Pages, Category 3, Category 2, the rest. I have no idea where to start from, but I suppose that ...
0
votes
0answers
27 views

Creating a custom Search Form that links to a custom database?

I'm kinda new in Wordpress and I'm still learning as I go along. Currently, I'm trying to create something like this I have a custom set of database in the server in mysql with a table. The ...
0
votes
1answer
43 views

Use pre_get_posts to display search results by meta in specific order

I have a search query that I'm limiting to search within a custom post type. When the content is returned I have it sorting by meta value. The post meta is a person's position. The function below ...
0
votes
1answer
33 views

Search taxonomy terms, not posts

I want to generate a list of Custom Taxonomy terms, searching through the searchform. I don't need to return posts associated the the term, I want to return the terms themselves that will link to ...
0
votes
0answers
52 views

User Meta Search Script with Strange Number of Results Per Page and Incorrect Number of Items

I have not been able to find a plugin that allows me to search well on user meta fields from the WP backend users search. The closest I’ve found is "Improved user search in backend" however, this is ...
0
votes
0answers
33 views

Search page Paginations not working

This is what I use in all my other pages that require a pagination. <?php endwhile; ?> <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ($total_pages > 1){ ...
0
votes
0answers
28 views

Function to bypass specific words in search?

Is it possible for a word to be skipped/excluded/ignored in the default search? For example if I could make it so that if I type the great thing in the url instead of '?s=the+great+thing' it will ...
0
votes
1answer
21 views

Extend search function with link to searched word

I have a basic search function running on my website. This works fine. However I have only 5 pages. So the search function will never be longer then 5 pages which could be a good thing. The pages are ...
0
votes
0answers
23 views

Problem in Search Box

I was building a wordpress theme in which their is search form in my single.php file. But my posts will be displayed on index.php. While searching anything its showing search results in index.php but ...
0
votes
2answers
57 views

Include Author profile in search results

I need to add user profile to search results for a site we look after. I need to return any user with role of 'Consultant' (and only consultant) whos name or nickname or whatever matches the search ...
0
votes
1answer
22 views

Search.php display results differently based on post type

I'm trying to work on my search.php template. I'd like to display results differently based on their post type. I have Pages, Posts and Machines (a custom post type) Here's an example of the ...
0
votes
1answer
17 views

WP + Google analytics = /search?

I finally found some time to tweak our business site. After digging some Google Analytic data I found out a portion of our users goes to "/search". Problem is: We don't offer a search function on our ...
0
votes
1answer
28 views

Custom Wordpress Excerpt within terms

Is it possible to show an excerpt of the place in the feature where the search (term) result/hit is? Thanks
0
votes
0answers
9 views

Managing a tracking ID

I'm looking for advice on being able to create a custom tracking section within a wordpress site. In it's most simple form, the website will offer a service that users will be able to buy and then ...
0
votes
0answers
13 views

MAke a search form to also includes html of the post

I have a database of all images that I am using in wordpress, a lot of them are not attached to posts because they are not in the uploads folder, lets say for example I have an image named: ...
0
votes
3answers
36 views

Prevent search query from taking place when using Google CSE?

I'm using a custom Google search engine to display results on my site, rather than WordPress's built-in search functionality. I've done this by modifying our theme's search.php template to replace ...
0
votes
1answer
85 views

Modifying the default search widget

I'm creating a plugin widget that does a different search from the normal default search widget. I copied the code from the default widget: class new_search extends WP_Widget { ...
0
votes
0answers
33 views

Content instead Excerpt on term

Is it possible to show limitation (dynamically) of the contents near the search term value. I knew how how to using excerpt, but what I am talking about is, search result content limitation character ...
0
votes
0answers
20 views

Generate list of tags from search results

On my search results pages I have my tags list too. But I only want to show tags that will filter the results further. So clicking on a tag will filter the result with the search term AND the selected ...
0
votes
1answer
30 views

How to have WP Search widget index dynamically generated content?

I'm working on an adoption site and the company has a database that contains all their adoptive families. I have a page that contains a small line of shortcode which pulls every family within the ...