Hi, @smunk
Thank you for reporting this issue.
Would it be possible for you to share the URL of the page where this problem is occurring?
This particular behavior hasn’t been widely reported, so it may be related to your site’s specific setup.
Having a look at the actual page would help us better understand the root cause.
If the information is sensitive or not appropriate to share publicly,
you can also reach me via Slack — I’m available as @Takashi Matsuyama on the Make WordPress Slack:
https://profiles.ww.wp.xz.cn/takashimatsuyama/
Thank you.
Thread Starter
smunk
(@smunk)
Thank you for your quick answer!
A page where the problem can be seen: https://kontemplation.eym.dk/praksisbibliotek/
Thanks for looking into this, I really appreciate!
Hi @smunk,
Thanks for sharing the URL — that’s very helpful!
Just to clarify: are you using the shortcode inside a block theme or the block editor?
This plugin does not currently support block themes or the block editor.
If you’re trying to display the [ccc_my_favorite_select_button post_id=”” style=””] shortcode within a post listing (archive), it must be placed inside a classic PHP template — not within a block.
In that case, you’ll also need to make sure that the post_id is dynamically retrieved within the loop.
I hope this explanation helps clarify the issue.
Thank you.
Thread Starter
smunk
(@smunk)
Thanks for your answer.
The page is not using the block editor and not using the block theme.
It does use a page builder, Beaver Builder, and the posts are shown using one of its modules.
Without the shortcode tags [ccc_my_favorite_list_results] or [ccc_my_favorite_list_custom_template style=""] , the page works fine, with all posts correctly showing their favourite-status.
If one of those shortcode tags are placed on the page, the page works fine the first second or two, then all posts change favourite status to being favorites. It seems that happens by the class “save” gets added to all “cc-favorite-post-toggle-button” elements.
Therefore my guess is that the JavaScript code that is executed when returning from the ajax call that helps the list-php to know which elements are favorites, adds the class to all cc-favorite-post-toggle-button elements, and not just those just rendered by the shortcode, and thereby shows all posts on the page as favourites.
Hi @smunk ,
Thank you for the detailed explanation — that helps a lot.
To be transparent, I haven’t tested this plugin with Beaver Builder and can’t guarantee full compatibility with third-party page builders.
For troubleshooting purposes, could you please try the same setup using a default WordPress theme (like Twenty Twenty-Four), and without a page builder, to see if the issue still occurs?
That will help isolate whether the problem is related to the plugin itself or a compatibility issue with Beaver Builder.
Also, just to clarify — I haven’t personally tested placing [ccc_my_favorite_list_results] on the same page as a post listing.
This shortcode is intended to display a list of posts the user has saved as favorites, and is typically used on a blank page without a post loop.
To help narrow down the cause, could you try using [ccc_my_favorite_list_results] on a blank WordPress static page (post type: page, without a post list) and see if the issue still occurs?
That would help determine whether the interaction between the list shortcode and the post listing is causing the behavior you’re seeing.
I hope this approach helps clarify the situation.