This members-only tutorial provides the steps to set up a newer similar plugin called My Favorites in Oxygen including showing user's favorite posts (can be of any post type) using the Repeater component.
Install and activate My Favorites. There is no settings page for this plugin.
To add the favorite heart button, edit your Template with Oxygen and add this shortcode:
That will output an empty heart icon that gets filled when the user clicks on it to indicate that it has been added to the user's favorites.
If you have a profile page in your site for each logged-in user and wish to show a link to the favorites page - /favorites (to be created in the next step), add this shortcode:
Create a Page called Favorites.
We are going to cover 3 ways in which the logged-in user's favorites can be shown.
- Plugin's shortcode - looks ok on the front end, you might want to add a some custom CSS to tidy up the look.
- Plugin's function - for those that want full control of the generated HTML. Needs full custom styling.
- Oxygen's Repeater - for those that prefer to visually build the output.
Add this shortcode either in the WP/Oxygen editor:
To tidy up the look a little like
add this CSS:
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $599 one-time).
Already a member? Log in below or here.