Forums Forums Search & Filter Pro Integrating with WP Job manager

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #89954

    Firstly this plugin is great, I’m just having difficulty getting it working with Wp Job Manager.

    I’ve set up a form and added SF via do_shortcode on a archive-job_listing.php tempalte – http://languagematters.demo.strategiesexpress.co.uk/jobs/

    <?php echo do_shortcode('[searchandfilter id="4148"]');?>
      <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
         <div class="post">
         <h2 id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
         <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
          </div>
        <?php endwhile; ?>
    <div class="navigation">
    <div class="alignleft">
    <?php posts_nav_link('','','&laquo; Previous Entries') ?>
    </div>
    <div class="alignright">
    <?php posts_nav_link('','Next Entries &raquo;','') ?>
    </div>
      </div>
    <?php else : ?>
      <h2 class="center">Not Found</h2>
     <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
      <?php endif; ?>

    This is just a default loop I took from the codex.

    I’ve tried As Archive and Post type archive. I did also try shortcode but wans’t sure this would work with Wp Job Manager.

    I’ve looked at some other threads but couldn’t find any solutions.

    Any help would be greatly appreciated.

    Anonymous
    #89955

    The only other thing of note that I have forgotten is the site is currently on a multi-site install.

    Trevor
    #89986

    Hi, try the custom method?

    Depending on the theme, where you have the line:

    <?php echo do_shortcode('[searchandfilter id="4148"]');?>

    You might need:

    <?php do_action("search_filter_query_posts", 4148);?>

    That might also work with the As an Archive method.

    Anonymous
    #89990

    Thanks for getting back to me to quickly.

    I’ve just tried switching to custom and back to as archive method after replacing the shortcode with the do_action as suggested but it hasn’t seem to have fixed it.

    In-fact the search form seems to have disappeared all together.

    Thanks

    Trevor
    #89992

    Ah. Your shortcode was to display the form (I thought it was for results, I should pay more attention), so you will have to put a form on the page also, maybe in a sidebar, just for testing?

    The code I gave you was to make sure the results worked filtered. I hope.

    Anonymous
    #89999

    Right I’ve added a sidebar with the form in it to the page so it now look like so –

     <div id="content" class="narrowcolumn">
    <?php do_action("search_filter_query_posts", 4148);?>
     <?php get_sidebar('archive-widget-area'); ?>
      <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
         <div class="post">
         <h2 id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
         <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
          </div>
        <?php endwhile; ?>
    <div class="navigation">
    <div class="alignleft">
    <?php posts_nav_link('','','&laquo; Previous Entries') ?>
    </div>
    <div class="alignright">
    <?php posts_nav_link('','Next Entries &raquo;','') ?>
    </div>
      </div>
    <?php else : ?>
      <h2 class="center">Not Found</h2>
     <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
      <?php endif; ?>
    </div>

    Jobs have gone again and no numbers are being assigned in the taxonomies in the search forms.

    Feel like I must be missing somthing obvious
    display results page –
    null
    general page –

    general

    Trevor
    #90002
    This reply has been marked as private.
    Anonymous
    #90004
    This reply has been marked as private.
    Trevor
    #90007
    This reply has been marked as private.
    Anonymous
    #90009
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 12 total)