0
votes
2answers
40 views

Make the text field in search form optional

I've added some custom fields to my search form, which will be used more frequently than the original text field (<input name="s" />). However, the text field seems to be required to perform a ...
1
vote
0answers
27 views

Search Query: how to construct a search string from two select elements?

Im trying to create a wordpress search widget. The final search string Im trying to submit is made up of two keywords, one each from a select element. I'd like the final search query to be ...
0
votes
0answers
19 views

Search form is not working in live site

I have installed a wordpress theme called suffusion. Search widget is not working in this theme. It shows nothing found always. I have search.php as below. It is working in local machine <?php ...
0
votes
0answers
36 views

WP E-Commerce: include custom meta value in product search

I'm currently using the WP E-Commerce plugin to integrate e-commerce into a site I'm building, this all works great but I've also added a custom meta value to the product page, the small problem I'm ...
0
votes
0answers
27 views

Specific custom search

i think i'm doing the right thing but somethings wrong I've 3 custom searchs, two of them i can see perfectly and i search with no problem but the third one i can see what i posted but when i search ...
0
votes
0answers
25 views

Ajax Auto Complete Convert All Plural Text To Singular

I am trying to create a wordpress search plugin that if you enter a text or keyword term, it would automatically convert any plural text to singular text e.g. "dogs" will become "dog" I am already ...
1
vote
2answers
298 views

esc_url returns incorrect URL

What would be the reason for <?php echo esc_url( home_url( '/' ) ); ?> to be sending me to an incorrect website? I use it in my search bar and when I search a value it sends me to one of my ...
0
votes
0answers
56 views

display a dynamic calculated value on each of the post wordpress

i am working on wordpress based coupon site. I have to create a amount calculator which would work on all the individual category pages . I would be having a amount slider which would be having $ ...
0
votes
0answers
137 views

condition for searching multiple inputs in wordpress

I am trying to create a custom search box and would like to know how to check multiple condition based on different inputs.There are 2 inputs. a normal search code (which searches for inputs which we ...
0
votes
1answer
42 views

Search box background on a different page template

I'm trying to make the search box background the same as the homepage, but for some reason there is a orange background - it doesn't use a different header.php its called within a filter the code ...
0
votes
1answer
24 views

Search through documents folder

Does anyone know why the following returns nothing? <?php $dir = get_bloginfo('template_directory') . "/documents/*"; foreach(glob($dir) as $file) { echo $file; } ?> I ...
-1
votes
1answer
735 views

Eliminate duplicates in a foreach loop [closed]

I've created a filter for my search results that allows people to filter user searches based on their State from their profile. The problem I am having is that there are duplicate states showing in ...
0
votes
0answers
284 views

Filter posts by multiple checkbox categories

I would like to set up a widget to filter my post by categories. Let's say, I do have two different categories, "Countries" and "length of stay" with sub categories. Here is an example of what I have: ...
0
votes
1answer
364 views

Search that will look in custom field, post title and post content

I am looking for a way to perform a search, and while performing the search, it checks a custom field named keywords, the post title and the post content. If any of those fields have results like what ...
0
votes
0answers
43 views

How can i retrive the movies, trailers, news in a single page using search

How can i retrive that. For a few month i build a website, and i want to make it diferent For the search i have 3 post type, and i have for each diferent themes for display - Movies - Trailers - ...
3
votes
1answer
138 views

Search widget breaks when using multiple loops?

I have created wordpress template that uses two loops via WP_Query object. Everything works fine except Search widget. I've been pulling my hairs out for three days now Googling like a madman,but ...
1
vote
1answer
257 views

Add relevant tag to search results

Tags are a major part of my platform. Using the default search, if the search term matches a tag, on the results page, I want it to display: <p>Are you looking for our <a ...
0
votes
1answer
38 views

Trying to put a search page on site

i'm trying to put a search page on my site. I thought it would be simple, but I am having no success. I have put a form in my header.php (which I call in my search.php page (include "header.php")) ...
2
votes
1answer
368 views

Rewriting search and pagination base

After trying for weeks now how to find a working solution I got rid of most of my functions and trials and just left the pagination function underneath in my functions.phh file: /** * Pagination ...
0
votes
3answers
138 views

How can i display 3 post types in same page?

How can i display 3 post types in same page search results. http://cinema.trancelevel.com/ For example i have post_type1-Movies post_type2-Trailers post_type3-Subtitrari Wen i search i want to ...
0
votes
1answer
98 views

Search.php gets metadata from first post

I've got this in header.php in <head> section: $page_color = get_post_meta($post->ID, 'page_color', true); It works fine because it gets correct page_color for posts and pages but when I ...
0
votes
1answer
92 views

split searchresults into different topics?

How could I split the searchresults into topics. I have e.g. three Topics - cars | computers | culture all are "custom post types" . Now a user searches for term "speed" in the searchbox and the ...
1
vote
1answer
528 views

Customising the search function?

I'm rebuilding this website - http://www.mediwales.com/news on the WP platform. I'm struggling with the search area in the grey box. I'm removing region and date so we don't have to worry about ...
-1
votes
2answers
1k views

How to strip/remove all blank spaces at the beginning/end of a search string

I use hack of Chris_O for highlighting the search terms. When a user enters the search keywords without any blank space in the beginning or at end of the search string it retrieves and highlights the ...
0
votes
2answers
69 views

search and add in wordpress content

I have a wordpress plugin that displays videos through a shortcode. My problem is it assigns the div's with ID's such as video-1-player, video-2-player, etc. I need to create a function that searches ...
1
vote
2answers
115 views

Can anyone offer any help with this function?

I am trying to write a function for my functions.php file. I has to do the following; loop through search results and check the template if the template is 'landing.php' add it to ad array use the ...
2
votes
2answers
224 views

Comment filtering (search)

Basically I want to develop the ability to search comments on my site. A form with input field where the visitor can enter a search string, which tells WP to display only comments that contain that ...