gstar3
Forum Replies Created
-
Forum: Plugins
In reply to: [Favorites] After/clicked favorite button hook?This is what I use to show my favourites button in the page:
<?php the_favorites_button($post_id, $site_id); ?>
The JavaScript function I mention above is just to show a message to the user when the favourites button is clicked.
- This reply was modified 1 year, 10 months ago by gstar3.
Forum: Plugins
In reply to: [Favorites] Is it possible to create different lists of favorite posts ?There is nothing simple built in to do this, the closest thing I have done to this is customise favourites lists using the Method 2 WP Query code here, you could have any number of templates, custom if statements to show lists for any scenario or user roles and custom WP Query loops for any specific favorites list design like custom post types etc, you could then theortically use the WP Query to seperate lists into custom taxonomies for example, so any post that was favorited with a taxonomy would then have its own seperate list for that taxomony, I think it’s along those lines but it is custom.
Forum: Plugins
In reply to: [Favorites] Help me!!Sounds like you would use custom CSS to visually center the button in your template, for example, a container div around the Favorites button tag with text-align: center; something along those lines.
Forum: Plugins
In reply to: [Favorites] Simple Favorite DBThe data is stored as an array in the user meta.
Forum: Plugins
In reply to: [Favorites] After/clicked favorite button hook?I was able to use the Javascript Event ‘favorites-updated-single’