I’m working with a custom post type displayed within a query loop, which includes a shortcode that outputs content from another plugin. However, I’m encountering issues with both infinite scroll and pagination:
When using infinite scroll, the shortcode content doesn’t load as expected.
Pagination doesn’t work at all, and it seems to have a serious bug that requires fixing.
I’ve tested the shortcode (that only outputs “Hello World”), and the output was working nicely, even when using infinite scroll. Note that if your shortcode outputs a <script> tag, that script will not execute: Element: innerHTML property - Web APIs | MDN
For a second (pagination) problem, I can’t reproduce the bug, but I would love to. Can you give me a bit more info, on what is your setup of the custom query and pagination element?
The shortcode I’m using is in a meta box which I created with JetEngine, as each post has unique content generated by different shortcodes. This content is provided by the Sonnar MP3 Player plugin, which I’m primarily using for audio waveform generation.
so the shortcode is basically a dynamic content on each post
the shortcode widget content in the query looks like this
{je_presets_short_code} <—which I fetch data from a custom meta box of each post
The issue with pagination is that, when I click to navigate to a different page, the content doesn’t update—it remains stuck on the first page. The content doesn’t change at all.
No, query loop pagination is not working in the custom post type (I mean if the query loop is in a custom post type page) this needs to be resolved, the third-party plugin is not the primary problem right now.
I just removed some of the messages containing my website URL.
@thehedgedog, would it be possible for you to send temporary login credentials to your website and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase, so we can take a look at this pagination problem?