0
votes
1answer
31 views

Incorrect search results in search.php – issue triggered by using `define('BodyID', 'search'); the_post();` in search.php

I have a problem where the page title is not picked up in search results. I've narrowed the problem down to the following line of search.php in my custom theme. define('BodyID', 'search'); ...
0
votes
1answer
23 views

Search page results conflicting logic - Search result caching?

I recently stylized my search page results from the base template _S, and got everything to work quite nicely. I've developed it to return false/positive header/body. It should only return a positive ...
0
votes
1answer
114 views

Custom theme won't use search.php

I have a custom searchform.php and search.php in my theme. However, when searching for something all I see is the front page (with mysite.com/?s=something in the adressbar). I use a filter to make ...
0
votes
1answer
189 views

custom theme's search not working

I've created a custom theme. It's pretty simple. However, the search function is not working. Does the search results page not use the theme's page.php?
0
votes
0answers
44 views

wordpress search result page post_type order

i want to customize the search. what i need is when user search for ex: if user search for tools in search result will return result in following manners. Pages page 1 page 2 Posts post ...
1
vote
1answer
1k views

How can I customize wp_footer, where is the code that controls what this function does?

I am using Wordpress 2013 theme as a starting point for a new theme from scratch. Under my themes folder, my footer.php theme looks like this. (Notice the final functionwp_footer(). ...
0
votes
1answer
62 views

Why is the post type on the search result page random?

So I think I might be doing something fundamentally wrong in my Wordpress themes since this issue seems to crop up every once in a while and I don't know why. So basically I created search.php and I ...
0
votes
1answer
69 views

How to multiply a post to test internal search results?

I'm using two ways to do my search. One, located in search.php: <?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); ...
0
votes
1answer
129 views

Search Form Not Working

www.milknhny.co.uk/ClearWatch Im using a basis of the Twenty Twelve theme and im using the below script (yes i know that the wrappers are not correct as yet) However its defaulting back to the main ...
0
votes
1answer
60 views

The normal loop with different styles doesn't work in search.php

This code in the search.php file does not work: <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if( get_post_type() == 'post' ) {?> <div id="post"> ...
0
votes
1answer
32 views

altering search terms

How can you filter or alter the search terms that users enter into a search field? Is there a hook available? The idea is to use this function to filter out 2-3 letter "filler" words ("on", "and", ...
0
votes
1answer
102 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 ...
1
vote
1answer
1k views

Custom Taxonomy Tag Search

I have an existing WordPress search function, what I'd like to be able to do is extend the search to the tags from my custom taxonomy...how do I do that? <form method="get" id="searchform" ...
0
votes
1answer
948 views

Search Results not displaying for multiple word search

I've customized a theme and am having some problems with search results using multiple-word queries. Site is live at www.abetterworldbydesign.com Searching for a single word works as expected. ...
4
votes
3answers
8k views

How to remove search bar from a wordpress theme?

How to remove search bar from a wordpress theme?