• I’m setting up a community blog, where authors can auto-register. I’ve found how to display the $user_nickname on the index page. But I’d also like to display the total number of registered authors. How can I do that? (Apologies if this has been answered before, couldn’t see it.)

Viewing 1 replies (of 1 total)
  • Thread Starter rlubensky

    (@rlubensky)

    OK, not to worry, I forged ahead and figured it out myself. Luckily, I know my way around php.
    In template-functions-author.php I inserted a small function called get_authors( $exclude_admin = true ) which just returns the $authors string as produced in the first few lines of list_authors().
    Then in index.php I echoed sizeof(explode( “\n”, get_authors()));

Viewing 1 replies (of 1 total)
  • The topic ‘Number of authors’ is closed to new replies.