Page 2 of Search Results shows homepage
I think you are missing the $paged arguments $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1;
I think you are missing the $paged arguments $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1;
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
You should be able to access search pages via search/foo as well as ?s=foo. This search rewrite rule is built in into WP since version 1.5. I tested it and it works. As for the template files, you will need search.php, searchpage.php is not used. Also see: http://alexking.org/blog/2007/08/30/friendly-search-urls#comment-57678 http://codex.wordpress.org/Creating_a_Search_Page
Have you tried adding an extra clause checking for the revision post type in function pts_save_post( $post_id, $post ) { of post-type-switcher.php ? E.g. as taken from trunk and modified: /** * Set the post type on save_post but only when editing * * @since PostTypeSwitcher (0.3) * @global string $pagenow * @param int $post_id … Read more
You can try using the tag cloud.
The search field – #s – is floated to the right side, so the following content just moves down when the site is small enough. There are some adjustments to its position in @media blocks at the end of the stylesheet. For example this: @media (max-width: 650px) { /* other stuff */ /* Make sure … Read more
You have a typo in your $advtxtQuery query– $where =” (( post_typs LIKE ‘projects’)… For the rest, both queries are searching on the same key so use IN instead of trying to create two separate arrays, as in the Codex example below: $args = array( ‘post_type’ => ‘my_custom_post_type’, ‘meta_key’ => ‘age’, ‘orderby’ => ‘meta_value_num’, ‘order’ … Read more
Solved. It turned out that the Block Bad Queries (BBQ) plugin that I use simply blocked too much. Marco
To clarify, it is important to note that the HTML presented above is not necessarily directly related to the search query you’re making. I would advise disabling any plugins that potentially modify the search query. If that doesn’t remedy the issue, there may be a query filter within your currently active theme or a plugin … Read more
Some themes like Twenty Fourteen include a template tag included in the content.php file for entry meta which includes the author and date: Example: twentyfourteen_posted_on(); The content.php file also includes the_title() tag so you need to remove that if you don’t want the entry titles displaying on your search result pages. The search.php file includes … Read more