Modifying search results based on post_type

i think you can PHP it using an if statement.. like so: Say this is the loop.. (simple one i know): <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php $post_type = get_post_type_object( get_post_type($post) ); $post_type_name = $post_type->labels->singular_name if ($post_type_name == ‘example’) { echo ‘<div class=”highlight searchResults”>’; } else { … Read more

Enhancin 404 to contain a search from URL

WordPress doesn’t deeplink to any php file for the front end. Instead, everything is passed throug the url as a query, like so http://your-blog-url.com?p=123. If you wanted to change that behaviour, you could edit your permalink structure in multiple ways. Just go to settings->permalinks (i have no idea what that is in czech, but its … Read more

Search engine for WP as CMS [closed]

1st You’re looking for a search result display, not for a search engine. 2nd It’s as easy as modifying the Search Results Template. Excerpt can be used like normal in your templates loop. Fast, depends highly on your themes code and the plugins you use, as well as your server, so I skip this point. … Read more

Pagination in author, category, archive and tags pages does not work

This looks like a simular issue to this one with wp-pageNavi: http://scribu.net/wordpress/wp-pagenavi/right-way-to-use-query_posts.html. Taxonomies and archives should use ‘page’, not ‘paged’ so use that in the urls to begin with. Then, to ensure your pagination script works in all locations you can change the way you get your $paged variable. Something like this should do it: … Read more

Search wordpress using three different drop down menus

You should be using different variables in your URL query, such as: mysite.com/?year=2001&make=Chevrolet&model=Express Make sure the name=”” in your select inputs reflect the name changes. You will then just need to read in the variables using PHP’s $_GET or $_REQUEST global variable. Something like this $year = ($_GET[‘year’]) ? $_GET[‘year’] : false; $make = ($_GET[‘make’]) … Read more