Skip to:
Content
Pages
Categories
Search
Top
Bottom

Place all custom posts by a member in new tab


  • almemedia
    Participant

    @almemedia

    Hi,

    I want to create a new nav tab in the members profile called Adventures. So far no problems. But than I want to display all post type adventure by this member in this nav tab and I can’t get it to work.

    Any ideas or comments?

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    What have you tried so far?

    Anything like this?

    
    $member_id = $bp->displayed_user->id;
    
    $args = array(
    'author' => $member_id,
    'post_type' => 'adventure'
    );
    $the_query = new WP_Query( $args );
    
    if ( $the_query->have_posts() ) :  etc
    
Viewing 1 replies (of 1 total)
  • The topic ‘Place all custom posts by a member in new tab’ is closed to new replies.
Skip to toolbar