This code creates a new page template which prints a list of all contributing authors who have published posts on your blog.
There’s 2 versions in this post, the first of which will work with any theme and the 2nd for Genesis only users.
Here’s the result tested on StudioPress themes.
Update: See also WP Authors Page Template With Social Media Links
The code will also work on non Genesis themes however may need some tweaking of the CSS.
Installing The Code
There’s 3 blocks of code which need to be installed.
- Create a new file named contributors_page.php using a text editor like Notepad++ and copy the code from the Gist labelled contributors_page.php into your new file. Save the file to desktop and upload to the root directory of your child theme.
- Copy the PHP from the Gist labelled functions.php and paste it at the end of your child themes functions.php file.
- Copy the CSS code from the Gist labelled style.css and paste it at the end of your child themes style.css file before the start of your Media Queries section.
Code For Any Theme
You need to pay to fully access this tutorial.
Enjoy unlimited access & coding support by registering.
This code includes a body class named wpsites-authors which you can use in your style sheet for specific template styling.
What The Code Does
Basically, the functions code creates a template tag which you can use in any template or hook in using a custom function with conditional tags.
Credit to the people who worked on the Twenty Fourteen default theme for WordPress as this code is a modified version of whats included in that theme.