@ozanguzelkan
9 years, 7 months ago
Hi, can anyone knows this issue?
I want to:
– give hyperlink to page titles. – post content must be deleted. – get the thumbnail to page.
`//POSTS ON PROFILE STARTS HERE
add_action( ‘bp_setup_nav’, ‘add_profileposts_tab’, 100 ); function add_profileposts_tab() { global $bp; bp_core_new_nav_item( array( ‘name’ => ‘My Posts’, ‘slug’ => ‘posts’, ‘screen_function’ => ‘bp_postsonprofile’, ‘default_subnav_slug’ => ‘My Posts’, ‘position’ => 25 ) ); } // show feedback when ‘Posts’ tab is clicked function bp_postsonprofile() { add_action( ‘bp_template_content’, ‘profile_screen_posts_show’ ); bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) ); }
function profile_screen_posts_show() { query_posts( ‘author=’ . bp_displayed_user_id() ); if ( have_posts() ) : get_template_part( ‘author’ ); else:?> <div id=”message” class=”info”> <p><?php bp_displayed_user_username(); ?> has not published any post! </p> </div> <?php endif; ?> <?php
}
//POSTS ON PROFILE ENDS HERE
9 years, 10 months ago
any ideas?
thanks.
@peter-hamilton, thank you so much, i got closer to what i needed with your code. And like you i dont know how to remove second list either.
Is there anyone to help on this issue?
Regards,
Ozan
is there any ideas?