Skip to content

Instantly share code, notes, and snippets.

@Kenshino
Last active January 2, 2016 20:59
Show Gist options
  • Save Kenshino/8360351 to your computer and use it in GitHub Desktop.
Save Kenshino/8360351 to your computer and use it in GitHub Desktop.
//Make up your own query var line
<?php $link_query_args = '?job_industry=' . $industry . '&job_function=' . $job_function . '&location=' . $location . '&job_seniority_level=' . $level . '&search_term=' . $search_term; ?>
<?php if(get_next_posts_link()): ?>
<div class="next_page">
<?php echo wingz_get_next_posts_link('&laquo; Next Page', '', $link_query_args); ?>
</div>
<?php endif; ?>
<?php if(get_previous_posts_link()): ?>
<div class="previous_page">
<?php previous_posts_link('Previous page &raquo;') ?>
</div>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment