Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination problem and 404 error #61

Open
matpl91 opened this issue Apr 24, 2024 · 0 comments
Open

Pagination problem and 404 error #61

matpl91 opened this issue Apr 24, 2024 · 0 comments

Comments

@matpl91
Copy link

matpl91 commented Apr 24, 2024

Hi, I have error on listing page with limited job post to 10. When I click 2,3 etc page i have error 404

At function.php i have add ( see at previous topic) code

function wphelp_custom_pre_get_posts( $query ) { if( $query->is_main_query() && !$query->is_feed() && !is_admin() && is_category() ) { $query->set( 'paged', str_replace( '/', '', get_query_var( 'page' ) ) ); } } add_action( 'pre_get_posts', 'wphelp_custom_pre_get_posts' ); function wphelp_custom_request( $query_string ) { if ( isset( $query_string['page'] ) ) { if ( '' != $query_string['page'] ) { if ( isset( $query_string['name'] ) ) { unset( $query_string['name'] ); } } } return $query_string; } add_filter( 'request', 'wphelp_custom_request' );

also permalink slug’s are ok but still have 404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant