Hi,
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.
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:
<?php
$query = new WP_Query(array(
'post_type' => 'bp-member-type',
'posts_per_page' => -1,
'post_status' => 'publish'
));
while ($query->have_posts()) {
$query->the_post();
$post_title = get_the_title();
echo $post_title;
echo "<br>";
}
wp_reset_query();
?>
This will retrieve all the member types names from the “bp-member-type” custom post type.