May 6, 2010 at 8:03 am #1175
I would like to show on my blog the total of leads.
I stop the subscription to the first 300 members after it’s paying.
So, I found a php code into the ‘dashboard menu’ file. I would like to know if it’s possible to get the shotcode to display the total members of the blog ??
Thanks for your great support.
nicolasMay 6, 2010 at 2:37 pm #20393
You will have to create the shortcode. First you will need to write the function that displays the total number of members then you can add in the shortcode functionality. If you have the function ready (the function that displays the total number of members) then I can tell you how to create a shortcode that exercises that function.May 6, 2010 at 9:43 pm #20394
I think that I’ve got the php function.
Could you tell me how to create a shortcode ?
nicolasMay 7, 2010 at 12:57 am #20395
This link should help you with that:
In short you will have to add something like the following to the “wp_eMember1.php” file:
Then you can use the following shortcode to display the output of the your_function_name() function:
remember you should not put any echo in the “your_function_name”. You should add all the output string to a variable then return it.May 7, 2010 at 10:07 am #20396
I totally lost…..
I’ve try to :
insert the code to the “wp_eMember1.php” but nothing happen. I don’t know where insert the code.
So, I insert this :
BUT I’m not sure about the “function_name”.
I’m not a geek and php isn’t my favorite branch matter….
I tink that the php code is : <?php echo $wp_total_members->count; ?>
So I don’t know ‘changing’ like an output string…
sorry, I’m really bad in programmation
nicolasMay 8, 2010 at 12:55 am #20397
LOL… okay my co-developer of this plugin has added a shortcode for you that can be used to display the total number of members.
You can either use the following shortcode on a post or page:
or use the following PHP code to display the total members from your theme’s template file:
<?php echo emember_get_total_members(array()); ?>
I have sent you an updated version of the plugin.May 8, 2010 at 7:20 am #20398
I’m blown away. I never seen a support like yours.
It’s like “open source”. We give some ideas and you do it. Resultat : the most complete WP plugins that I’ve never seen.
Best Best regard,
nicoMay 8, 2010 at 6:58 pm #20399nurMember
it feels great to have such comments. It inspires us a lot
- You must be logged in to reply to this topic.