WordPress plugin “My Favorites”
Save user’s favorite posts and list them.
This plugin is simple. You can save the user’s favorite posts just a install and display them anywhere you want with just a shortcode. The logged-in user’s data is saved in the user meta. Other user’s data is saved to Web Storage (localStorage).
Support on WordPress.org
WordPress.org Forums » [My Favorites] Support
detail
Replies: 5
First, thanks for an amazing beautiful and simple plugin!
We have a problem when displaying a list of favourites together with other posts: Whenever a page has shortcode for showing favourites, whether it is [ccc_my_favorite_list_results]
or [ccc_my_favorite_list_custom_template style=""]
, all posts gets marked as favourites, event though they are not.
It is kind of easy to see that it happens at the return of the ajax call, since initially the posts are marked correct as favourites (or not). Then after a second or so, all posts gets incorrectly marked as favourites.
Is there a way to avoid that?
Thank you very much
Soren
detail
Replies: 6
Hello @takashimatsuyama,
how can I get in touch with you to report a vulnerability? (I wasn’t the one who discovered it — I just want to report that your plugin has been flagged with a known vulnerability.)
Thank you.
detail
Replies: 0
Hello I am using your shortcode for a custom list view ([ccc_my_favorite_list_custom_template]) along with the function ccc_my_favorite_list_custom_template( $my_favorite_post_id )
– this works as expected.
I am wondering if would be possible to use this shortcode twice, but associated with different layout – any ideas if this is possible or suggestions on how to achieve this. Alternatively how can access the $my_favorite_post_id array from PHP?
session_start() – session_write_close
detail
Replies: 1
Good day,
I encountered a problem while using popular plugins.
WordPress reports:
A PHP session was created by calling the session_start() function. For hitting REST API and loopback requests. The session should be closed using session_close() with an HTTP prewrite request.
In app/Bootstrap.php I hit the beginning of the session:
if ( !session_id() ) session_start();
If I turn off the plugin the problem no longer appears. It also causes other complications for me, I’m not a programmer so I don’t know how to fix it, so I want to ask if it’s possible to fix it?
Thank you and have a nice day.
detail
Replies: 0
I am seeing a sporadic error when trying to output a list of favorites on a page. Anonymous visitors are able to add to the list and I can see the array stored in local storage, but when visiting the favorites listing page we get “Forbidden” rather then the list of post. This seems to be coming from your list_posts_action() function? We are using the LiteSpeed caching plugin and thinking this is issue and if simply excluding the listing page from the cache would resolve the issue?
Development on GitHub
GitHub - takashi-matsuyama/my-favorites: WordPress plugin "My Favorites"
WordPress plugin "My Favorites". Contribute to takashi-matsuyama/my-favorites development by creating an account on GitHub.