Hi Ashley, thanks for posting your issue regarding pagination. Generally, static sites do not support query strings (e.g., ?page=2). Instead, pagination should be handled with pretty permalinks, such as /page/2/, /page/3/, etc. This should work seamlessly with Staatic.
To better assist you, could you please provide the following details:
- An original HTML snippet where pagination is implemented on the dynamic site.
- A HTML snippet of the same after being processed by Staatic.
- The configured “Destination URL”, which can be found under Staatic > Settings > Build in your WordPress dashboard.
If there are any specific configurations or additional details you think might be affecting how pagination is handled, those would be helpful as well. For a comprehensive view of your site’s setup, you can provide the site information by navigating to WP-Admin > Tools > Site Health > Info (tab) and clicking “Copy site info to clipboard”, then sending it to [email protected].
Looking forward to your response to help get this sorted out!
Thread Starter
Ashley
(@skywalkerisnull)
Hello,
I have sent through most of those details to the contact email address. There are no additional settings that I can think of that would be impacting it.
We’ve identified that the Pagination block editor widget sometimes generates query string links instead of pretty URLs, which can cause issues, especially on static sites. The root of this issue seems to be tied to how the Pagination block interacts with the WordPress theme and settings. Specifically, if the query loop does not inherit from the global query, it generates query string URLs, which are not compatible with all setups.
A successful workaround that has helped in this scenario involves setting the desired page as the site’s “Posts page” under Settings > Reading in WP-Admin. This adjustment ensures that the Pagination block correctly inherits from the global query and thereby generates pretty URLs.
For those experiencing similar issues, please try adjusting your “Posts page” settings and consider the compatibility of your WordPress theme with the block editor’s pagination widget.