Read Authors/other into PHP variable
-
Hi, I’m a first time theme developer, and making a theme for a client to use more as an online journal than as a blog.
Specifically, I’m wondering if there are ways to read the list of authors / topics etc. into a php array variable. I do this because I display a list of Authors, but like to exclude a specific subset of authors from that list.
The way I’m currently solving the problem is to read wp_list_authors() into a string, hash it up with PHP’s explode function, and then get the authors using preg_match(). Its a rather unelegant solution, and depends on a specific wp-admin configuration (i.e. permalinks have to be set right, etc.).
Initially, I tried a direct MySQL query, but that only seemed to mess up “the loop” as other information from $wp_query was corrupted.
Can someone point me in the right direction here?
Thanks
- The topic ‘Read Authors/other into PHP variable’ is closed to new replies.