WordPress.org

Forums

WP Favorite Posts
Link to Full List of Favorites Needed in Widget (3 posts)

  1. cpein1
    Member
    Posted 2 years ago #

    2 features I could use help enhancing - first is the sidebar widget itself. The widget lists user's favorite posts, however, there's no link in that widget, perhaps at the end of the list, to take them to the full page of favorites to manage. I've been trying to add it manually where I'm guessing it should go, in the wpfp-your-favs-widget.php but can't seem to get the right syntax to make it work....

    Having this link in the widget itself, something like "View Full List of Favorites | Manage Favorites" is kind of an important usability thing I'd like to figure out with anyone's help...?

    Also, the widget is only available to add as a sidebar widget in the WP admin Appearance > Widgets area ONE time - for example the sidebar widgets for POSTS. I have additional custom sidebars for Pages, Archives, etc. that I want the widget to appear in but don't have it as an option if I'm already using it in a post sidebar. I noticed someone has posted here regarding this same issue but there was no response.

    http://wordpress.org/extend/plugins/wp-favorite-posts/

  2. cpein1
    Member
    Posted 2 years ago #

    No solution found yet for only being able to add the Widget one time to one sidebar instead of multiple sidebars. I did figure out how to add a text link within the widget, at the end of the favorites list, to go to the full favorites list.

    In the plugin's files, to the file wpfp-your-favs-widget.php, I added an extra echo right after line 17 (but before line 18)

    echo '<a class= "wpfp-url" href="http://www.YOUR_URL/favorites/"> View & Manage Your Favorites</a>';

    Also, right after line 18 which contains echo "</ul>";

    I added a new line with this:
    echo "<br><br>";

    to force some space after that link in the bottom of the widget. Best I could come up with on my own.

  3. 3x7
    Member
    Posted 2 years ago #

    Thanks,
    I'll try that.

    I'll also try to find out how to link inside the widget all of the suggestions I posted here:

    http://wordpress.org/support/topic/plugin-wp-favorite-posts-suggestions-on-widget-refresh-remove-emptysharemanage-buttons?replies=1

    The idea is to do it all from widget... will let you know about the progress.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic