• Resolved hursey013

    (@hursey013)


    I’m having some weird issues with the ajax pagination on the fronted using the [jobs] shortcode. Sometimes I get duplicate listings of the same exact job (both point to exact URL), and sometimes jobs are missing completely that I know are there. For example I know a specific job was just posted today, when paging through, its not there, but if I search for it specifically by keyword, it shows up. See here for example: http://screencast.com/t/m0xVxEk4xu

    On a similar note, how difficult would it be to just switch the “load more jobs” button to typical, non-ajax pagination? I realize it’ll take modifying the code, which I can hack at, I just wanted to see if you thought it was even worth attempting – (I’m wanting to serve some Adsense ads, and I’d prefer each page click reload the page to also reload banners.)

    Thanks for your help.

    http://wordpress.org/plugins/wp-job-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Could you switch themes and see if your version of that theme is affecting it?

    If you wanted non-ajax paging you’d probably be better off building your own shortcode with it. I didn’t include this because the shortcode is self contained and I didn’t want to require query string variables.

    Thread Starter hursey013

    (@hursey013)

    Looks like the issue is still present in the default 2014 WP theme: http://screencast.com/t/AjcQKNBxPof – I have not made any direct edits to the plugin, I have everything setup in a child theme, so that should be an untouched version running on the default theme. Only other plugins I have installed are: http://screencast.com/t/gurJxHVA

    Thanks for the suggestion in regards to the non-ajax version.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    You may want to test without any of them to be sure – I’m not sure if those 3rd party job ones affect queries.

    I’ve got a client that wants to change from the endless scrolling page of “load more jobs” clicks to a more traditional numbered list of pages for a couple of reasons.

    1) A single page with additional jobs only visible after a click+ajax could be detrimental to SEO.

    2) If someone clicks “load more jobs” for a while then clicks on a job for further inspection, when they then go back to the job page, they start their search all over! There is no easy way to get back to page 10 of the results.

    I knocked up a plugin to add a new [jobs_paged] short code last night to turn on paging of the results and turn off the “load more jobs” link but it turns out it’s not quite as straight forward as that because all the filter/search functionality is queried through ajax so I’m going to need to replace all that to have a fully working solution!

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    @wpsites You could duplicate most of the ajax query handling code to your new shortcode and just use query string. The code you need is all there – just needs moving.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pagination’ is closed to new replies.