Support » Plugin: Relevanssi - A Better Search » X hits and no results displayed from Job Manager plugin

  • Resolved JackTheKnife


    I have a hard time to display search results from Job Manager plugin (set jobman_job only to be indexing) and I have got:

    Documents in the index: 20
    Terms in the index: 58
    Highest post ID indexed: 1163

    I have comment out query_posts() and still what I’m getting as search results are only ‘There are 2 results:’ but no results at all.

    Also how can mark custom fields to be indexed? So far is indexing only titles nothing else.


Viewing 5 replies - 1 through 5 (of 5 total)
  • It looks like $wp_query->get_posts() doesn’t return anything.

    Here is search code:

                        <?php _e('There are'); ?>
                        <?php /* Search Count */
                            global $wp_query;
                            $key = esc_html($s, 1);
                            $count = $wp_query->post_count;
                            echo '<strong>' . $count . '</strong> ';
    						// The Loop
    						while ( $wp_query->have_posts() ) :
    							echo '<li>' . get_the_title() . '</li>';
    						// Restore original Query & Post Data
    					<?php //query_posts($query_string);
    					$wp_query->query_vars['posts_per_page'] = $ds_eth_search_ppp;
    					if (have_posts()) : while (have_posts()) : the_post(); ?>
    						<div class="post_holder searchresults">
    							<h2 class="post_header"><a href="<?php the_permalink() ?>" title="See the rest of <?php the_title_attribute(); ?> article."><?php the_title(); if ($post->post_type == 'page'){ ?> - <strong><?php _e('Page'); ?></strong><?php } ?></a></h2>
    							<p class="post_info"><a href="<?php the_permalink() ?>"><?php the_time('j M Y') ?></a><?php if (!($post->post_type == 'page')){ ?> | <a href="<?php the_permalink() ?>"><?php } ?></p>
    							<div class="hr"><div class="inner_hr"></div></div>
    							<div class="clearfix"></div>
    					<?php endwhile; ?>
    					<?php else : ?>
    						<h2 class="center">Not Found</h2>
    						<p class="center">Sorry, but you are looking for something that isn't here.</p>
    					<?php endif;
    					if (function_exists("pagination")) {
    					} ?>
    				<?php if($ds_eth_search_sidebar_right != 0){ ?>
    				<ul class="gs_<?php echo($ds_eth_search_sidebar_right); ?> sidebar omega">
    					<?php if(function_exists(dynamic_sidebar(8))):
    					endif; ?>
    				<?php } ?>

    OK, got it half way resolved

    if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : the_post(); ?>

    but still searching for a solution how to indexing all fields from Job Manager plugin.

    Custom fields to index: all

    Looks like I’m almost at home 😉

    Plugin Author Mikko Saari


    Yes, get_posts() is just as poisonous to Relevanssi as query_posts().

    So, missing anything else?

    I think I’m OK – just need to find out exact names for Job Manager custom fields so I can specify what must to be indexing not all of them.


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘X hits and no results displayed from Job Manager plugin’ is closed to new replies.