Yes, your theme is probably restricting the search to just posts by $wp_query->query_vars[‘post_type’].
Thread Starter
Dev27
(@charles27)
Thank you for your response. Here is my Search.php code. Do you see something in here I can change? And if so to what? (Or should I look somewhere else? Thanks.
<?php get_header(); ?>
<div class="grid_12 blog-title">
<h1> <?php _e('Search results for', 'unicorn'); ?> "<?php echo get_search_query(); ?>" </h1>
</div>
<?php $sidebar_position = get_option('reedwan_sidebar_position', 'true');?>
<?php if($sidebar_position=='left'): ?>
<!-- Left Sidebar -->
<div class="grid_4 sidebar">
<?php get_sidebar();?>
</div>
<?php endif; ?>
<?php get_template_part('includes/blog-style-two'); ?>
<?php if($sidebar_position=='right'): ?>
<!-- Right Sidebar -->
<div class="grid_4 sidebar">
<?php get_sidebar();?>
</div>
<?php endif; ?>
<?php get_footer(); ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use a pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]
Thread Starter
Dev27
(@charles27)
some of code cut off. I put in backticks now. I don’t see where to change anything with this search.php. this is frustrating. can anyone help please?
<?php get_header(); ?>
<div class="grid_12 blog-title">
<h1> <?php _e('Search results for', 'unicorn'); ?> "<?php echo get_search_query(); ?>" </h1>
</div>
<?php $sidebar_position = get_option('reedwan_sidebar_position', 'true');?>
<?php if($sidebar_position=='left'): ?>
<!-- Left Sidebar -->
<div class="grid_4 sidebar">
<?php get_sidebar();?>
</div>
<?php endif; ?>
<?php get_template_part('includes/blog-style-two'); ?>
<?php if($sidebar_position=='right'): ?>
<!-- Right Sidebar -->
<div class="grid_4 sidebar">
<?php get_sidebar();?>
</div>
<?php endif; ?>
<?php get_footer(); ?>
Nothing particular in your search template, and looks like your search form is clean as well. It’s hard to say what’s wrong without taking a closer look. Could your theme settings constrict the search to just posts? If you force the search to just pages, it does find them. You can try it yourself: search for something, then add &post_types=page
to the page URL.
Also, I’ve noticed you’re quite impatient to get answers, but posting on my personal blog or emailing me repeatedly does not increase the time I have available – I have to prioritise and put my paying work first, then paying Relevanssi customers, then support for the users of free Relevanssi.
Thread Starter
Dev27
(@charles27)
Please forgive me for emailing so much. Thanks for the tips. It really is an awesome plugin. I left 5/5 and a really nice review at WordPress. Again, I’m sorry for my impatience.
Sincerely,
Charles