Skip to:
Content
Pages
Categories
Search
Top
Bottom

Include latest wire post on new page

  • Avatar of wolfspirittt
    wolfspirittt
    Participant

    @wolfspirittt

    How can I include a persons latest wire post on a separate page? I tried including bp-wire-templatetags.php and then adding the following code:

    <?php if ( function_exists(‘bp_wire_get_post_list’) ) : ?>

    <?php bp_wire_get_post_list( bp_current_user_id(), bp_word_or_name( __( “My Wire”, ‘buddypress’ ), __( “%s’s Wire”, ‘buddypress’ ), true, false ), bp_word_or_name( __( “No one has posted to your wire yet.”, ‘buddypress’ ), __( “No one has posted to %s’s wire yet.”, ‘buddypress’ ), true, false), bp_profile_wire_can_post() ) ?>

    <?php endif; ?>

    This doesn’t seem to provide anything (I assumed it would have grabbed all wire posts) and I really just need the latest one. I might just do a straight sql call but wanted to find out if there was already a built in way to do this. Any help would be appreciated. Thanks.

You must be logged in to reply to this topic.