My Favorites

Description

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).

Usage

  • Shortcode: [ccc_my_favorite_select_button post_id="" style=""]
  • Shortcode: [ccc_my_favorite_list_menu slug="" text="" style=""]
  • Shortcode: [ccc_my_favorite_list_results class="" style=""]

For pages with a shortcode for list view ([ccc_my_favorite_list_results]).

If you want, you can change the code for list view yourself.

  • Shortcode: [ccc_my_favorite_list_custom_template style=""]

For pages with a shortcode for custom list view ([ccc_my_favorite_list_custom_template]).
Add the function (function ccc_my_favorite_list_custom_template( $my_favorite_post_id ) { }) for your list view to your-theme/functions.php.
$my_favorite_post_id is array.

Detailed usage is under preparation.

Installation

  1. Upload my-favorites to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Use shortcodes to display the favorite posts list and an icon for save and a menu for link to list.

Reviews

27 2743 March 2743 000000 2021
Easy to use and very easy to customize works very well for Lastest version Include a sample images on the favorites page. Highly recommend Thank you 🙂
Read all 2 reviews

Contributors & Developers

“My Favorites” is open source software. The following people have contributed to this plugin.

Contributors

Translate “My Favorites” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.3.0

Add shortcode for custom list view.

1.2.1

[Bug fix] about load JavaScript.

1.2.0

Load CSS and JavaScript only when using shortcodes and modify CSS.

1.1.0

Add shortcode attribute (style="") and modify CSS.

1.0.1

Modify default slug of shortcode ([ccc_my_favorite_list_menu slug=""]) to “favorites” from “ccc-favorite” and modify readme.txt, description.

1.0.0

Initial release.