Skip to:

How to query BP Member Types (Member Type List)

  • epao0607


    How can I query this?

    Here is a screenshot

    Want to create a query, that I can save the list into an array, then create a loop to display the list.

    Here is the name of the Plugin that I am using, to create a Member type.
    BP Member Type Manager

    The problem is, the plugin author’s site is down

    No other threads to view.

    Need help

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

  • danbp



    unfortunately for you, the plugin you use has poor support. The good news is that you could do that manually and that MT received some improvements since that plugin appeared. Personnaly, i think it is useless today (imho).

    The magic starts by reading and copy/pasting the code explained on the codex. Once you get a result by example, and once you understand how it works, you can adapt to your need.

    Member Types



    Hi Dan,

    Thank you for the reply.

    Yes, I see that the link you gave was to create a custom Member Types with the use of the BP Core/Codex, as of the moment, We are using the MT Plugin because the user/admin was not a techie and cannot code, so we’ve used it for him to create a MT Category using the plugin. The problem is that, we need to implement the MT Category List on the Registration, as of the moment, we are entering the category slugs on the template file, which is quite painful and manual each time user/admin adds a new category.

    what i need to know.
    How to create a bp member type query, to display all the list of the MT on the registration page.

    Thanks, sorry for bad english



    Here is the idea

    {start_query_bmtm_manage_member_types} // Get All MT Cat Slugs
    $member_types = array{get_list_of_member_types} // Store All MT Slugs 
    $member_args = array(
        'member_type' => array( {print_member_types} ), // Prints out the MT Slugs

    Hope this helps somehow.

    Afnan Abbasi


    Hey dude,

    I don’t know if you got this done by now but here is a solution to your problem. I was going through the same issue and I knew what to do.

    Use this php snippet:

    $query = new WP_Query(array(
        'post_type' => 'bp-member-type',
        'posts_per_page' => -1,
        'post_status' => 'publish'
    while ($query->have_posts()) {
        $post_title = get_the_title();
        echo $post_title;
        echo "<br>";

    This will retrieve all the member types names from the “bp-member-type” custom post type.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar