To Explode or not to Explode (3 posts)

  1. cron
    Posted 10 years ago #

    I would like to be able to have a simple list of all the authors on the site in this sort of format.

    firstname 'nick' lastname, firstname2 'nick2' lastname2,

    I do not want them displayed as links and I would like to exclude the authors with zero posts.

    My question is would it be better to do a direct database call to get this information and sort it how I want? Or should I use the <?php list_authors(); ?> tag to get the information and then use the explode function in PHP to break apart the returned information and then sort it how I want?

    Currently I am tempted to use the explode function since I think it would be easier however it is a messy hack. Are their any problems doing it this way? What do you guys suggest?

  2. marke1
    Posted 10 years ago #

    if it were me I'd probably write my own sql query code if I couldn't find a useful existing function...

    have you looked at list_authors() ?


  3. cron
    Posted 10 years ago #

    Yes I have. That was my decision, to use that and then format it or to do a direct query.

    Thanks for the input!

Topic Closed

This topic has been closed to new replies.

About this Topic