Thread Starter
Rhand
(@rhand)
All of these posts have IDs next to each other 391, (392 is a revision) 393 and 394. That is surely not a coincidence. They have the same main category, but different sub categories. They are not private so that is not the issue either.
Thread Starter
Rhand
(@rhand)
This loads posts on search:
<form method="get" action="<?php bloginfo('url'); ?>/" class="searchform">
<input type="text" name="s" class="search-text text required" value="" defaultvalue="<?php _e('Find properties',TS_DOMAIN); ?>..." />
<button type="submit" class="search-submit"><span><?php _e('Ok',TS_DOMAIN); ?></span></button>
</form>
http://codex.wordpress.org/Template_Tags/get_search_query has little data at the moment.
Thread Starter
Rhand
(@rhand)
http://domain.com/?s=lik shows two posts and http://domain.com/?s=liku shows none whereas it should show one post too. Still no clue why. What does seem to happen is that search found lik in post content, but not in the title and displayed it with “search everything” turned on as well as turned off.
Thread Starter
Rhand
(@rhand)
I think it has something to do with the theme’s search query:
<?php if(!ts_get_option('ts_sb_archive')) : ?><div id="content"><?php endif; ?>
<?php if (have_posts()) : ?>
<div id="listings">
<?php // Get number of search results
$results = new WP_Query("s=$s&showposts=-1");
$term = wp_specialchars($s, 1);
$number = $results->post_count;
wp_reset_query();
?>
<?php global $query_string; $cat_news = get_cat_id(ts_get_option('ts_news_cat')); query_posts($query_string.'&cat=-'.$cat_news); ?>
<h2 class="h2-section"><?php echo $number; ?> <?php _e('Properties found for',TS_DOMAIN); ?> '<?php echo $term; ?>'</h2>
please wait for help
right now you’re just talking to yourself and with all the replies, folks likely think you’re getting help
Thread Starter
Rhand
(@rhand)
True Samuel. Sometimes my help requests become log books. Got to admit I am a little impatient every now and then. Well solved it already. Theme’s custom search query excluded posts from search results when they were in news category of choice as well. Removed the posts from the news category and now all good.