search results to a variable in search.php
<?php $search_query = get_search_query(); ?> I think you’re searching for this function: get_search_query()
<?php $search_query = get_search_query(); ?> I think you’re searching for this function: get_search_query()
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
Fields added by S2Member are probably stored in wp_usermeta, while BP’s member search searches over data stored in BP’s xprofile tables. Probably the most straightforward fix is to use a BP profile field for your ‘company’ data. If you’ve already got member data in there, you’d have to write a script that moves (or copies) … Read more
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