Error 404 with sub-category page
-
Hello,
I have a website with Hueman theme and WP-PageNavi plugin.
I’ve just noticed that the navigation doesn’t work for sub-categories pages. I get a 404 error when I want to see the second page.
See here, at the bottom of the page :
https://www.unegeeketteauxmanettes.fr/critique-test/
“critique-test” (=review) is a sub category of “jeux-video” (=video games).I don’t know very well the framework of WordPress. I just downloaded the Hueman theme and that’s all…
The theme hasn’t been updated for a while (I think I have the 2015 version, free one)The plugin works well in root categories and articles pages.
Hueman pagination.php
<nav class="pagination group"> <?php if ( function_exists('wp_pagenavi') ): ?> <?php wp_pagenavi(); ?> <?php else: ?> <ul class="group"> <li class="prev left"><?php previous_posts_link(); ?></li> <li class="next right"><?php next_posts_link(); ?></li> </ul> <?php endif; ?> </nav><!--/.pagination-->
Hueman post-nav.php
<?php if ( is_single() ): ?> <ul class="post-nav group"> <li class="next"><?php next_post_link('%link', '<i class="fa fa-chevron-right"></i><strong>'.__('Next', 'hueman').'</strong> <span>%title</span>'); ?></li> <li class="previous"><?php previous_post_link('%link', '<i class="fa fa-chevron-left"></i><strong>'.__('Previous', 'hueman').'</strong> <span>%title</span>'); ?></li> </ul> <?php endif; ?>
Permalinks config :
https://www.mywebsite.com/%category%/%postname%/
Do I have to update the code ?
Thanks for your help !
- The topic ‘Error 404 with sub-category page’ is closed to new replies.