Listing “other” Author posts in single.php loop
-
Right, I’ve been having some fun and games with a templating issue for the last while and I have a feeling I’m just missing something really obvious..
I am helping a mate out developing a record label website. The way I’ve created it is that every artist on the record label is a contributor user and this has presented the additional advantage of having some nice ways of laying out the artist pages (using the author template page).
The artist page itself needs a bit of work yet, but you can see from the below that I’m going to be showing their releases (posts) at the end of their page:
https://devel.invisibleagent.com/author/corrugated/
The idea is to repeat this listing of their releases on each release page (eg: Other Releases By This Artist).
This should appear before the comments area, but everything I do seems to result in some crazy php neverending looping.
Here’s a sample of the release page:
https://devel.invisibleagent.com/2006/02/22/corrugated-tunnel-we-are-electronix/I know that I can use the_author_posts and the_author_posts_link to display how many posts the author has made, but what I want to do is actually create a loop accessing items published by an author with a specific ID which I’ll grab from the single post loop.
The way I have things setup is that this would allow me to grab custom meta fields (eg album covers) and just display them.
Any thoughts?
- The topic ‘Listing “other” Author posts in single.php loop’ is closed to new replies.