Tagged Questions

The method by which users find information on your WordPress site

learn more… | top users | synonyms

0
votes
0answers
12 views

grouping search results page by category (why wont this work?)

Any suggestions would be amazing; I just want to output the search results under their category names; so keyword search found under said categories just group under said categories on results page!!! ...
0
votes
0answers
14 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
16 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
19 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
17 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
11 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
17 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
24 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
12 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
11 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
26 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
16 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
16 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
19 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
28 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
32 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 ...
-1
votes
0answers
22 views

Search in an accordion?

I think I'm falling victim to WP's famously bad search function. I have masses of linked info in an accordion that i would like to search for and click on the link in the search results page, but the ...
0
votes
0answers
21 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
10 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 ...
-3
votes
0answers
11 views

I need the same search function as this WP theme [duplicate]

http://demo.themefuse.com/?theme=autotrader&device=desktop The search function (especially when you click Advanced Search) is pretty much exactly what I'm trying to achieve - but don't know where ...
-1
votes
0answers
19 views

How do I implement my search form into a functioning Wordpress search form? [duplicate]

Here's the code for my search form: <form role="form"> <div class="form-group"> <select class="form-control custform"> ...
0
votes
1answer
50 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
25 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 ...
3
votes
2answers
59 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
29 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
39 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
27 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
34 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
56 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
24 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
17 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
25 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
49 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
61 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
30 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
28 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: ...
0
votes
0answers
19 views

Search results problems

I'm having an hard time with the Search results page in my theme. I am using Magic Field for my creation of custom post type. All my custom post type are set to "post", but I can't get how the search ...
0
votes
0answers
11 views

How to remove title from searchs parameters in WordPress?

I have a simple question about WordPress theme developpement. I'm trying to check if there is anyway to remove the_title() from parameters into the search engine of WordPress. Here is why : If I ...
0
votes
0answers
15 views

Modifying Search to Exclude results from within short code or HTML

I've been struggling with this one for some time and I was wondering if anyone has any ideas on how to fix this. I'm not asking about stripping out short codes or HTML from the excerpt, that's fairly ...
0
votes
0answers
26 views

Nice permalink for search results with NiceSearch plugin

I'd like to know how I can rewrite a search results URL that also contains a ".html" into the end of URL. I have taken the code from the Nice Search plugin which works fine to change ...
1
vote
0answers
12 views

edit search.php to include subdomain posts

Is there a way for us to edit the search.php to include the subdomains with its search results? The only "condition" the code has is... ...and I have really nothing more to go by. =/ And oh, I ...
0
votes
1answer
54 views

Display post titles that match string in post content

I'm trying to search through the content of the current post and look for any strings in the content that match the title of any 'term' custom post types. The idea is that any terms we have that ...
0
votes
0answers
36 views

jQuery Ajax decompose WP_Query

I am working on a Ajax search field where I want to load links to products matching with my search query. My problem is that I don't know how I can get the titles and the permalinks from the query ...
2
votes
1answer
40 views

Wordpress search issue with searching html tags

I am working on a wordpress site and I am using wordpress native search. When we search for a string like "example" it searches inside html tags. ie if there is any html tag like <a ...
0
votes
0answers
49 views

Add Search Form to Dropdown menu

I am wondering if its possible to have a search form within a dropdown menu. I can add it to the main menu (base) but not quite sure how to actually go about adding it to a sub-menu of one of the main ...
0
votes
0answers
27 views

Modify search to display authors

I have been looking around the web but could not find a solution to this problem. Right now the search function in Wordpress - as I understand it - goes through the posts and looks for matching words. ...
1
vote
2answers
64 views

Show matching categories in search page

my current search only shows POSTS as results. http://newslines.org/?s=george My site has categories for George Clooney, George R.R. Martin etc. How do I get a list of categories that match the ...
0
votes
1answer
54 views

How do I get my custom query to work with search results after the first page?

I am using a custom query in order to ajax load/append additional posts instead of paginating them out like WP defaults. However, when I click the button I've made to load more posts, it loads all ...