The method by which users find information on your WordPress site

learn more… | top users | synonyms

0
votes
1answer
13 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
12 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
27 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
14 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
26 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
17 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
19 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
39 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
127 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
16 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
8 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
28 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
29 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
39 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
29 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){ ...
-1
votes
0answers
32 views

How to hide child category custom post in search? [duplicate]

I was new in here . I want to hide my wordpres child category post in search page. When search my parent category Every post include those under Child category will be search out , and i hope there ...
0
votes
0answers
23 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
13 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
21 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
38 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
11 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
16 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
26 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
12 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
34 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
49 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
29 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
16 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
19 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 ...
0
votes
0answers
76 views

Customize search results to include custom posts and display in a specific template page

Below I have a function working that includes my custom posts in search results. I would like to now display these results in a specific template. I tried adding the two commented out lines but it's ...
0
votes
0answers
26 views

Grouping search results in search.php based off on categories AND custom field names

Wondering if it's possible to output search results based on custom field names and categories via search.php file. I tried this: (with two categories) But didn't work for some reason? <?php ...
0
votes
0answers
43 views

Bare-bones WP Query location search

I need to develop a Wordpress query that filters a custom post by zip radius. I'll be using ACF Google fields to store the location of each custom post type. Here's where I am thus far. Wordpress ...
0
votes
1answer
26 views

Query by key or author

So right now my query looks like this: $allsearch = &new WP_Query("s=$s&showposts=-1"); I understand what this query does and it works, but not I want to add the ability to query posts by ...
0
votes
1answer
26 views

pre_get_posts not firing at all

I'm trying to add a custom post type into the seach facility so that it searches those posts as well as the pages on a site. I have seen the pre_get_posts function and have it set up like the below ...
0
votes
2answers
36 views

“Modular/reusable” content and search results

A client of mine wants the ability to create small blocks of content (call them "pods") and (re)use them in various pages across the site. So far, this is achieved by creating a custom post type [fig. ...
0
votes
0answers
19 views

Wordpress search not able to find text in url

I am publishing posts with lists of colleges. The college name is a url which points to inner pages. For some reasons, wordpress search is not able to find the text. For eg if the post had University ...
0
votes
1answer
35 views

Search result count not matching actual result

I have a custom search in place where I've excluded posts that have a custom field with a specific value, but the search count is including those with the custom field value. How can I get the search ...
0
votes
0answers
15 views

wordpress plugin redirects instead of performing search

I am creating a plugin; the plugin has item listings, and I want to search for items in the listings. Here is my code: <form method="get" action="<?php echo ...
0
votes
0answers
18 views

How to create a custom search by meta box or id post for custom post type?

I need an search form by id post or meta box for custom post type. How can I create this custom search form with a different search result layout?
1
vote
0answers
60 views

WordPress Filtering Custom Post Type by Metadata and Search Heirachy

I have a custom Post Type called cptMovie which has two Custom Field (Metadata) "Language" and "Box office" assigned to it. I also have a Custom Taxonomy called movieTax with 4 tax Terms "Action", ...
0
votes
1answer
38 views

Make the title and […] clickable in result search

I have search engine in my site. But when I try to search something, like "loan", the title is not clickable and the other contents are not displaying How to display the content and the title make as ...
0
votes
0answers
33 views

Custom search fields and AJAX support

I am trying to rewrite the search. I used the action pre_get_posts and the filters posts_where and posts_join. The page loads with my custom filters. But I can't make it work with AJAX. How can I make ...
0
votes
0answers
35 views

Custom Post Type Meta Box Content Showing In Search Results

When I search my site it doesn't seem to pick up the content I have in my custom post type meta boxes. This is the code for some of the meta boxes in my function.php file. // Add the Course Meta ...
0
votes
0answers
94 views

searchform.php :: pass second query string variable with same value as ?s=

I want to pass an additional parameter in my search URLs that would match the search term, but using an additional variable named 'x'. So, when performing a search, the user would enter "Cars" and the ...
0
votes
1answer
54 views

Wordpress custom search - pagination

I have written a custom wordpress search. The problem is that the pagination is not working. The pagination (1, 2 , 3 , 4 ,5 >>) appears on the web site, but when i press page 2 (or anything else) no ...
0
votes
0answers
54 views

Admin filter search not working for custom post metabox after update to WordPress 4.0

This code is not working after upgrading to WordPress 4.0: add_filter( 'parse_query', 'ba_admin_posts_filter' ); add_action( 'restrict_manage_posts', 'ba_admin_posts_filter_restrict_manage_posts' ); ...
0
votes
0answers
31 views

Removing search base url

Is there a way to remove all slugs from wordpress url (category, tag, author, date AND search!)? (so that something like http://example.com/search/foo would be rewritten to http://example.com/foo) I ...
1
vote
1answer
158 views

Creating a search form for custom fields

I have built a theme for a car dealership. Each car is a custom post type ("vehicle"), and has about 12 custom fields with things such as Make, Model, Mileage, Fuel Type etc. etc. So basically on the ...
0
votes
1answer
29 views

Geographic search with taxonomy structure [duplicate]

I had stored locations in wp with defined taxonomy. I would like implement a search that can take in consideration the location, eg, search for 'car rental, Maryland' All car rental are stored ...