WordPress.org

Ready to get started?Download WordPress

Forums

Job Manager
[closed] Job Listings Pagination (6 posts)

  1. joelmoney
    Member
    Posted 2 years ago #

    I am having an issue with the pagination on the Job Listings page.

    /jobs/

    Here is my template (snippet)

    [if_job_page_count]
    <div class="job-nav">
    <div class="this">Jobs [job_page_minimum]-[job_page_maximum] of [job_total]</div>
    </div>
    <div class="job-nav">
    <div class="previous">[job_page_previous_link]< Previous Job Listings | Page [job_page_previous_number][/job_page_previous_link]</div>
    	<div class="next">[job_page_next_link]Next Job Listings | Page  [job_page_next_number] > [/job_page_next_link]</div>
    </div>
    [/if_job_page_count]

    The issue:

    On the first page of the Job Listings it displays:

    Jobs -19-0 of 43
    Next Job Listings | Page 1 >

    Clicking the link goes to:

    /jobs/page/2/

    which displays things correctly.

    Jobs 21-40 of 43
    < Previous Job Listings | Page 1
    Next Job Listings | Page 3 >

    I implemented a fix to make the link work to page 2

    if ($page < 1) {
    $page = 1;
    }

    in frontend-shortcodes.php which worked...

    but now the issue is obviously the display of the Jobs -19-0 of 43 line on page 1.

    Any thoughts?

  2. joelmoney
    Member
    Posted 2 years ago #

    Anyone have a similar issue?

  3. Gary Pendergast
    Member
    Plugin Author

    Posted 2 years ago #

    This is a bug in the current version - the next release will include a fix.

  4. joelmoney
    Member
    Posted 2 years ago #

    That's great. However, when will there be a new release and if possible, can I get the snippet that fixes it in advance?

    Thanks!

  5. Gary Pendergast
    Member
    Plugin Author

    Posted 2 years ago #

  6. joelmoney
    Member
    Posted 2 years ago #

    Worked liked a charm!!!

    Thank you so much for this and look forward to the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic