Created
January 11, 2013 02:26
-
-
Save imjakechapman/4507481 to your computer and use it in GitHub Desktop.
Find the number of Members that have entries.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:query sql=" | |
SELECT count(*) AS num_members | |
FROM exp_members m | |
JOIN exp_channel_titles t on t.author_id = m.member_id | |
Where channel_id='CHANNEL_ID_HERE'"} | |
{num_members} | |
{/exp:query} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment