Skip Navigation

[Resolved] Shortcode from another plugin is not rendered when using pagination with AJAX

This thread is resolved. Here is a description of the problem and solution.

Problem:

In this user's case they are using a 3rd party shortcode that doesn't render after an ajax pagination.

Solution:

In this case they would need to contact the support forum for they shortcode to see if they have a way to reload their shortcode after an ajax event.

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by darmaJ-2 6 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1112335

Hi, I am currently working on a testimonial in my site, it is using Views with pagination using AJAX transition, in the output I am using another plugin to show a video of Youtube, the plugin I'm using is hidden link.

For the first item it is rendered well, but when rendering the 2nd item and so on the shortcode for the youtube video is not rendered and return as a text only.
I notice with Views with AJAX transition there is callback function to call the javascript when the pagination completed, but due the lack of my javascript knowledge, I can't find what script I have to put in there, do you mind to help find what I am missing to make it works using pagination with AJAX transition?

For the testimonial page I mention above is : hidden link
The square youtube video is the shortcode using the Video Sharing Add-on for Easy Social Share Buttons plugin.
For this time I set the pagination with page reload, because it is still reviewed by the client.

For the reference I also already add the shortcode in Toolset Setting Front-End Content

I can provide you, my access to wp-admin if you need it

#1112389

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Darmaj,

Thank you for contacting our support forum.

This is actually a common issue with many 3rd party shortcode and ajax. It needs to be recalled in the callback function to work.

Unfortunately i'm not able to tell or assist with finding with this function is. The best thing to do is to get in touch with the support team for the plugin and ask them if there is a function that can be used to manually reload the shortcode.

Thanks,
Shane

#1113635

Hi Shane,

Thanks for your response, I already have the php function for the shortcode to draw the video events:

essb_video_sharing($options);

But, unfortunately they didn't use the javascript function, because they say the generation of events and video can happen only on server level and cannot happen with javascript. They ask me if you can give possible hook that can be used to attach or execute shortcode?

#1114422

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Darmaj,

Unfortunately no since our hooks are for when a view is initially loaded and not on a ajax pagination.

The only workaround I see for this given the restrictions is to use a full page refresh instead of the Ajax pagination.

Thanks,
Shane

#1114785

Hi Shane, thanks for your response, I think I will try to figure it with something else for this issue