Tagged Questions

The method by which users find information on your WordPress site

learn more… | top users | synonyms

0
votes
2answers
19 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
10 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
13 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 ...
-3
votes
0answers
13 views

Wordpress theme with inbuilt feature of search and filter post by taxonomy [on hold]

I am looking for a wordpress theme that has internal support for search and filter post by taxonomy. Something like what has been implemented in this theme but this theme has been specifically ...
0
votes
0answers
13 views

Building a filterable archive, show all results when search is empty [on hold]

I'm trying to build a filterable archives page for example user could filter to show only content from a specific category, to do this I'm editing the search.php template. Problem is when I do an ...
0
votes
0answers
12 views

Geolocation tool [closed]

I am setting up a business directory using wordpress multisite. Creating 1 site for each city. I would like to do the following: Detect the location of the user and redirect to the respect site ...
0
votes
1answer
19 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
11 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
24 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
33 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
25 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
11 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
12 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
69 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 ...
-1
votes
0answers
15 views

Backend enhanced user search

I'm working on a WordPress website that has user database with important user information, so this user information need to searched thoroughly. as shown in the picture above I have a custom ...
0
votes
0answers
15 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
27 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
24 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
21 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
1answer
19 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
18 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
28 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
14 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
16 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
39 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
23 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
27 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
25 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
46 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
46 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
32 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
16 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 ...
0
votes
1answer
86 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
28 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 ...
4
votes
2answers
64 views

Pushing a custom post type to the top of the search results

Apart from posts and pages there are profiles on my site. Does exist some way how could I push them to the top of the search results? Currently, results are ordered at first by keyword and then by ...
0
votes
1answer
32 views

How to exclude one post format from search result?

I need to exclude one post format from Wordpress search results. Any suggestions on how to solve this issue?
0
votes
0answers
18 views

Help with WordPress search

i am creating a directory using WP, and need to allow customers to be able to search by industry and sector, like here http://www.checkatrade.com/ I will be setting these up through two taxonomies: ...
0
votes
0answers
10 views

Multisite Global Search for Stores Based on Metadata (e.g. ZIP Codes)

I am running MarketPress on WP 4 Multisite and would like to implement a search feature which returns the stores (hosted on the Multisite network) which deliver to a specific ZIP code. The ZIP code is ...
0
votes
2answers
43 views

Making a Custom Search form

I am creating a custom search form which will search a custom post type called recipes. and it has a load of taxonomies. Now I output these taxonomy's terms into checkboxes which are grouped by the ...
0
votes
1answer
41 views

multiple custom post type category selection search

I hope it's clear from the title but let me try to explain it better. Looking at this image should make it clear: I have custom post type names Product and categories related to it. What I am ...
0
votes
1answer
45 views

Custom Search Template for Custom Post Types

I know this is asked a million times, and I've found the solution. It seems fairly straight forward but it's not working for some reason. I wonder if it has something to do with the fact that I'm ...
0
votes
0answers
69 views

Wordpress WP_Query Array Custom search via taxonomies

Im trying to write a custom search function for my wordpress site. Im using WP_Query and multiple arraylists. Is it possible to order by search after taxonomy = pa_felg-bredde ? Here is my code so ...
0
votes
1answer
26 views

Exclude categories from search query

I have two categories that I want to exclude from my search results, so far without luck. I have tried adding the following piece of code but it didn't work. $search_query = ...
0
votes
0answers
31 views

Search results pagination not working with custom query

The first page of search results for a custom query work fine but from page 2 it only shows the index template and says page not found. I've looked around for solutions but none have worked so far. ...
0
votes
0answers
30 views

How do i append custom query results with default search query

I want to search my custom table along with default search Example: Table: sah_post Columns: ID, sah_id, title, slug, content, status, created_timestamp, updated_timestamp. Default wordpress ...
0
votes
1answer
68 views

How do i append UNION SQL Query with default search query

Example: (SELECT ID, post_status, post_title, post_excerpt, post_content FROM wp_posts WHERE ((`post_title` LIKE '%2020%') OR (`post_excerpt` LIKE '%2020%') OR (`post_content` LIKE '%2020%')) AND ...
0
votes
0answers
69 views

Add input fields to Wordpress search to search custom fields

I have 2 custom fields: first and last. My goal is to add 2 new input fields (first and last) to search their respectable custom field. Here's my form code in searchform.php: <form role="search" ...
1
vote
0answers
34 views

Create Search Form to Filter Through Terms

I have pages that displays a list / grid view of all my taxonomy terms. Over 200 terms. The page is paginated since there are so many terms, however, I would also like to include a "search" box at the ...
0
votes
1answer
32 views

Creating a search with tag variable also added for more detailed results

Wordpress search results is definately not the best indexing and search function we have seen.. If adding multiple tag variables in the search in order to get a more precise result work? For example: ...