How to build an advanced search form by post type?

In your search form, add an input with name=”post_type” and value=”customposttypehere”. You can either have this as a hidden input or a text entry or a combobox or radio buttons etc, so long as it’s inside the search form. The same is true for any other query vars like post_type etc that you would normally … Read more

Search within table?

Suggested here by JLeuse. It seems the contents within WP Table Reloaded is indeed separated from the post, which means the default WordPress search function won’t be able to fetch it…

Strip HTML Tags From Search Results

I don’t know about the code you are trying to use, personally I would never use a solution that excludes results, it’s very possible the item being searched for is in those results and excluding them is only a degradation of service. Instead you can use the search.php template file to adjust how your search … Read more

how to show Author information in search results

It’s called Author Rich Snippets. Your link needs to look like <link href=”https://plus.google.com/115911773396772351667?rel=author”/>Your Name</a> The Simple Way To Set Up Author Rich Snippets There are a few things you need in order to step up Author Rich Snippets: A public Google+ profile. Make sure to upload a decent looking profile picture. Google will use this … Read more

Search posts by Tag

You can hook inside the result, so that you change the query and search about the tags. The result is than a loop with all posts to this tag. You can relized this inside the template, there are is the output for search or write a small plugin, that hook inside the query and change … Read more

Search not working. Appending a “

The form in your HTML code looks like this: <form method=”get” id=”searchform” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”> <label class=”hidden” for=”s”><?php _e(‘Search this site:’); ?></label> <input type=”text” value=”Search site” name=”s” id=”s” /> <input type=”submit” id=”searchsubmit” value=”Search” /> </form> PHp is not parsed in this fragment, so I guess you didn’t include a PHP file, just regular HTML. … Read more

Order search results by category

I stumbled over this looking myself for a solution to order posts from WP_Query by their related terms, which seems to be the quintessence of this question. (I’ll answer to the special search case of the question below the general description.) Sorting Posts by related Terms So the key is the MySQL function FIELD() which … Read more

Search Form Based On Tutorial Not Working

Crystal Ball Programming and Why Your Searchbox Failed Your form fails because of this: action=”<?php bloginfo(‘template_url’); ?>/MilkNHny/search.php” You should never directly call a template via URL. Your template assume the WordPress environment has been loaded, which is a fair assumption. However, because you called it directly, it has not. Search.php is the template WordPress looks … Read more