Plugin disappears when sorting grid

On my site https://bestmac.app I am using Elementor and the Posts Element to make a grid.

I use the plugin WP Grid Builder to make a sorting facet so that people can sort by tags or categories.

My grid items each have a heart upvote using the plugin 'ULike Pro' but when I choose a category, the heart upvote disappears from each grid item unless I refresh the page.

According to ChatGPT, the issue might be

'ULike Pro' is being initialized after the AJAX callback.

I tried using a JavaScript reinitialization code but I still have the same problem, so I'm not sure if I'm using the wrong code or if the issue isn't related to Ajax.

1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer