WordPress.org

Ready to get started?Download WordPress

Forums

WP Favorite Posts
Text for favorites are empty is not showing (3 posts)

  1. Twanneman
    Member
    Posted 1 year ago #

    I've created a page "favorites" and added the tag {{wp-favorite-posts}}. When there are no favorites I would expect that the text "Favorite list is empty." would show up, however the text is not displayed. This is for logged in and logged out users.

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

  2. ElaineMarley86
    Member
    Posted 1 year ago #

    I have the same problem too. And I can't see favorites at all.
    I'm not a big php expert but I've looked in the plugin code and found some deprecated functions in it, could that be the problem?
    For example in this function

    function wpfp_get_user_meta($user = "") {
        if (!empty($user)):
            $userdata = get_userdatabylogin($user);
            $user_id = $userdata->ID;
            return get_usermeta($user_id, WPFP_META_KEY);
        else:
            return get_usermeta(wpfp_get_user_id(), WPFP_META_KEY);
        endif;
    }

    there are two deprecated functions: get_userdatabylogin and get_usermeta.
    Unfortunately I tryed to edit the plugin and replace those functions but didn't manage to solve the problem (because, as I said, I'm not very skilled in php). Any idea someone?

    NOTE: I'm using WP 3.5.0

  3. properwp
    Member
    Posted 1 year ago #

    Just FYI, someone else posted that moving back to version 1.5.6 will fix this:

    http://wordpress.org/support/topic/favorite-post-lists-no-displaying?replies=2

    You can find it on this page:

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags