Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • thanks, yes that is how I ended up doing it as well. I just changed that plugin to allow public tab viewing on the profile page and then added a function to show the posts based on the buddypress user’s profile instead of the logged in buddypress user. To do this you can use:

    $favorite_post_ids = wpfp_get_users_favorites($GLOBALS['bp']->displayed_user->userdata->user_login);

    to get the buddypress users favorites who’s profile you are viewing. Then, you can add the code to display the favorites in the same function. After this, you can use a custom shortcode function to display it on the tab you created.

    In the current version of this plugin(Version 1.6.0 with WordPress 3.8), I was able to figure out how to add a custom post type as follows…

    In wpfp-page-template.php, change this:

    // custom post type support can easily be added with a line of code like below.
    //$qry['post_type'] = array('post','page');
    query_posts($qry);

    To this:

    // custom post type support can easily be added with a line of code like below.
    $qry['post_type'] = array('post','page','YouCustomPostType');
    query_posts($qry);

    Where, ‘YouCustomPostType’ is the non-plural form of your custom post type. You can add on as many custom post types as you need. Hope this helps!

    Hi,

    I would also like to get it so that when someone adds a post as their favorite it shows up on their buddypress profile.

    I think I understand most of your steps.

    However, can you explain how to post the loop?

    After you add…

    $fav_array = wpfp_get_users_favorites(bp_get_member_user_id());

    how do you post the loop to get it to show the posts?

    Thread Starter Tim2376

    (@tim2376)

    Thanks for answering my question guys! I will have to look into using that plugin jkhongusc. It is nice that I am not the first one trying to do this. I really appreciate you guys taking the time to help me out. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)