Question

I am using the Wordpress Jobs Manager plugin. It all works great except the pagination feature. When enabled, the pagination buttons just redirect the user to the homepage instead of to the paginated page of results. As far as i can tell this is a problem with permalinks but i wondered if anyone had a workaround as i cannot use the standard permalinks on my site.

Does anyone know of any possible fixes? Its a custom built theme.

Thanks for you help guys

Was it helpful?

Solution

I know its a long time since you posted, but i had this issue today and came across your post.

I did some investigating and found it to be a problem with the way wordpress was dealing with the rewrites for canonical redirects.

I did a search on the internet and found the following post on wordpress.stackexchange.com by Celine Garel which deals with this situation for custom post types, i just changed it to work with a page.

https://wordpress.stackexchange.com/questions/134339/pagination-on-custom-post-type-not-working-if-permalinks-set-to-rewrite-url

Add this to your themes function file,

    add_filter( 'redirect_canonical','custom_disable_redirect_canonical' ); 
function custom_disable_redirect_canonical( $redirect_url ){
    if ( is_page('Your_job_list_page') ) $redirect_url = false;
    return $redirect_url;
}

This fixed it for me. Hope it helps you or anybody else.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top