Forum Replies Created
-
AuthorPosts
-
reepsyMember
This will work if you are interest in just the one level like I am (Level ID 3 in this example):
function paid_membership_count() {
global $wpdb;
$members_table_name = $wpdb->prefix . "wp_eMember_members_tbl";
$wp_member_count = $wpdb->get_row("SELECT count(*) as count FROM $members_table_name WHERE membership_level='3'");
$total_number_of_members = $wp_member_count->count;
}
add_shortcode( 'paid_membership_count', 'paid_membership_count' );So you use it like any shortcode: [paid_membership_count]
But you could easily parameritize it to do any specific level passed in as an attribute:
[paid_membership_count level=’3′]
reepsyMemberBoth
<?php echo emember_get_total_members(); ?>
and [emember_total_memebers] bring back teh total number of all memberships, as the names would imply. I am trying to make a goal meter showing progress towards selling xx memberhips at a specific membership level. So let’s say id=3. Any suggestions?February 14, 2012 at 6:32 pm in reply to: Nested Shortcode (Not Resolved by editing wp_eMember1.php) #41912reepsyMemberAny follow up here? I really don’t want to install the same version over what I have now.
February 14, 2012 at 3:10 am in reply to: Nested Shortcode (Not Resolved by editing wp_eMember1.php) #41911reepsyMemberI followed that link, and the link sent to me in email resulted in a download with the same version # (7.4.3). At least that’s what it says in wp_eMember.php
February 14, 2012 at 2:05 am in reply to: Nested Shortcode (Not Resolved by editing wp_eMember1.php) #41909reepsyMemberAccording to wp_eMember.php:
Plugin Name: WP eMember
Version: v7.4.3
February 13, 2012 at 11:06 pm in reply to: Nested Shortcode (Not Resolved by editing wp_eMember1.php) #41907reepsyMemberPeter,
Yes, [sf_become_member_link] is mine, and it is working properly. This one:
[wp_eMember_user_details user_info=”email”]
is also nested, from wp-eMember, and is not working. It is simply displaying that text, rather than generating the user’s email address.
reepsyMemberThanks.
reepsyMemberDeleting and re-installing the plugin seems to have worked. I had used an FTP program to put the files up last time. This time I sent the .zip up and unzipped it at the command line. So maybe that was the difference. Other than my custom CSS, which I retained, are there any file permissions or anything like that I ought to be on the lookout for? with the newly installed copy?
Thanks for your help.
-
AuthorPosts