Support » Plugin: WP Job Manager » Pagination Not Working in Job Listing Archive

  • zsaqadra


    Hi, so I enabled the theme support based on your documentation:

    I noticed that the pagination doesn’t work. It seems okay on page 1, but when going to page 2 and so on, it returns a 404 error. This is using the default archive.php.

    So I tried to duplicate it and create another archive file, named archive-job_listing.php, still same results.

    Mind you that the website is a clean setup, just Toolset and Woocommerce are enabled in the website. Theme being used is the 2017 Theme.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support bindlegirl


    Hi @zsaqadra !

    If you are creating a custom archive page you will need to create custom pagination as well.
    There are a lot of resources about pagination for custom post type so I would recommend you try searching for the one that will suit you best.

    You can try this one for example

    Thread Starter zsaqadra


    I duplicated the default archive.php, which supposedly has pagination, correct?

    And also prior from creating a custom archive, the pagination is not working for the job listing archive as well. Why is that?

    Plugin Support bindlegirl


    Hi @zsaqadra !

    Ah I get it now! You can try using this snippet:

    add_filter( 'register_post_type_job_listing', function( $array ) {
    $array['rewrite']['pages'] = true;
    return $array;
    } );

    Don’t forget to resave the permalinks when you add it.

    Can you please add this to your documentation? Would not want people asking the same problem when the solution is to simply add a filter on their theme’s functions.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.