Hello @mith143 ringsizechart ,
It sounds like there might be an issue with the pagination links on your blog page. Here are a few steps you can take to resolve this:
- Check URL Structure: Ensure that the URLs for your pagination links are correctly formatted and point to the right pages.
- Review Code: Look at the code for your pagination to make sure there are no errors or typos causing the issue.
- Inspect Server Logs: Check your server logs for any errors that might indicate why the redirection is happening.
- Clear Cache: Sometimes, clearing your website’s cache can resolve issues with outdated links.
If these steps don’t resolve the issue, you might want to consult your website’s support or community forums for further assistance.
Best Regards,
James Henry
Thank you @james589henry
I checked the URL by hovering mouse on the page 2 and I see the URL as ‘/bolg/2/’. So, I think the URL is right. Is there any other way I can check if the URL format and link?
Can you please guide me how I can check the code for pagination?
Thanks,
Mithilesh
Hi @james589henry ,
I just noticed something, when I hover over the page 2 link, I see the URL as ‘https://itechstoreca.com/blog/2′ however, when I type the URL manually in the URL bar as ‘https://itechstoreca.com/blog/page/2′ then it works fine. I see that the URL on my blog page navigator is missing ‘/page/’.
Can you please advise how can I include ‘/page/’ in the URL?
Thanks,
Mithilesh
Hey @mith143,
I checked url issues and I found the issue with pagination url.
Url pagination url is here https://itechstoreca.com/blog/page/2/ .
Please check url pagination code make above structure. Also check above url and it’s work by default.
Thanks
Hey @mith143,
You can try with below code. This code create pagination with link. Also check you elementor template have some features to add paramenter in pagination link. This code work on php template.
<div class="pagination">
<?php
echo paginate_links(array(
'total' => $wp_query->max_num_pages,
'current' => max(1, get_query_var('paged')),
'prev_text' => '« Previous',
'next_text' => 'Next »',
));
?>
</div>
Thanks
Thank you @james589henry & @ravindra107
I was able to resolve it. I found an option in Elementor to force the URL to include /page/num
Thanks,
Mithilesh