I am currently using a plug-in called Wishlist member. It allows you to create membership levels in WordPress. I want to be able to display different content on a page depending on if the user is added to two levels.
Am using the code of "Bainternet":
// get the current user level from WP more important is global $user. $user = wp_get_current_user();
// Get user levels from WishlistMembers $levels = WLMAPI::GetUserLevels($user->ID);
//then run the check for the level you want like this:
if(in_array('silver', $levels)){
// PRINT OUT THE silver LEVEL stuff here }
elseif (in_array('gold', $levels)){
// PRINT OUT THE gold LEVEL stuff here }
which works perfectly if the user is one level. If the user is added to two levels then how to use the above code? Please assist.
Regards,
Raghav.