Forums › Forums › Search & Filter Pro › Integrating with WP Job manager
- This topic has 11 replies, 2 voices, and was last updated 8 years, 2 months ago by
Anonymous.
-
Anonymous(Private) February 14, 2017 at 10:33 am #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('','','« Previous Entries') ?> </div> <div class="alignright"> <?php posts_nav_link('','Next Entries »','') ?> </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.
Trevor(Private) February 14, 2017 at 11:20 am #89986Hi, 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(Private) February 14, 2017 at 11:36 am #89990Thanks 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(Private) February 14, 2017 at 11:51 am #89992Ah. 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(Private) February 14, 2017 at 11:59 am #89999Right 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('','','« Previous Entries') ?> </div> <div class="alignright"> <?php posts_nav_link('','Next Entries »','') ?> </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 –
general page – -
AuthorPosts