Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @gerdneumann thank you for your detailed comment. I spent 3 hours trying to troubleshoot the srcset as there are NO mentions of it in any docs.

    Plugins owner, please add this valuable info to the docs.

    Thread Starter yan.odnoralov

    (@yanodnoralov)

    Your right. But I found another way ??

    w/ global:

    function my_profile_page_function_to_show_screen333_content() {
    global $bp;
    
    query_posts( 'author=' . $bp->displayed_user->id );
    
    // the Loop
    if (have_posts()) : the_post();
    	the_content( 'Read the full post ?' );
    endif;
    }

    or more simple code that works as well:

    function my_profile_page_function_to_show_screen333_content() {
    query_posts( 'author=' . bp_displayed_user_id() );
    
    // the Loop
    if (have_posts()) : the_post();
    	the_content( 'Read the full post ?' );
    endif;
    }
    Thread Starter yan.odnoralov

    (@yanodnoralov)

    Hmmmm… So I gave this a shot: `query_posts( ‘author=’ . $bp->displayed_user->slug );

    // the Loop
    if (have_posts()) : the_post();
    the_content( ‘Read the full post ?’ );
    echo bp_member_permalink();

    endif;
    `
    But still no luck… Do I need to have “displayed_user->slug” as global function inside y functions.php? If so, do you know how I would code that?

    Thread Starter yan.odnoralov

    (@yanodnoralov)

    In my understanding buddypress theme does have its own user ids.

    But suppose it doesn’t, can I just use wp user id to pull that users post? The complication is I’m not pulling by the logged in user, rather by the user who’s profile I am on.

    e.g. I’m logged in as John, and I navigate to Simon’s profile page (a fellow member of the site), I need to see Simon’s post not John’s.

    Any ideas?

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