There seems to be an error in the pagination when there is more than one page of questions – some of the pages are a 404? – eg. page 15 here https://www.plasticsurgeryhub.com.au/question/question-category/breast/ and pages 4 & 5 here https://www.plasticsurgeryhub.com.au/question/question-category/face/
Hi Adele Joy,
Please provide me username and password of your site and I will solve it for you.
Regards,
Kevin.
Hi Adele Joy,
I have checked and I can edit from the backend. So please enter this code to wp-content/themes/your-theme-folder/functions.php
add_filter( 'parse_query', 'dwqa_theme_fix_category_page' ); function dwqa_theme_fix_category_page( $query ) { if ( isset( $query->query_vars['dwqa-question_category'] ) || isset( $query->query_vars['dwqa-question_category'] ) ) { $dwqa_options = get_option( 'dwqa_options', array() ); $query->query_vars['posts_per_page'] = isset( $dwqa_options['posts-per-page'] ) ? $dwqa_options['posts-per-page'] : 15; } return $query; }
Hope it helps.
Regards,
Kevin.
Hi Kevin
I added the code to the child theme functions.php but this hasn’t fixed the problem.
Regards
Adele
Hi Adele Joy,
Please send me your FTP account PRIVATELY and I will fix it for you.
Apologies for the inconvenience. Let me know if there is anything else I can help you with.
Warm Regards,
Kevin.
Please login or Register to submit your answer