Including meta data when using query_posts
-
This may be a little complicated to explain, but I’ll do my best.
Basically, I’m creating bio pages for all the authors on my website. The pages use a template called “Bio Page”. I don’t want to create a new template for every single author—I just want to use the same one.
The problem is that I also want to have, say, a “Recent Works” section at the bottom of the bio, displaying the last five posts by that specific author. It would seem that the easiest way to go about this is to define the person’s name in a custom field, and simply have query_posts call from that custom field. But how would I do this?
Put simply, I need query_posts to be fluid and to adapt to different author names based on the same “Bio Page” template.
I’ve tried to use get_post_meta within query_posts, but it broke instantly (as I thought it might). I’m stuck. Help!
Thank you so much in advance!
- The topic ‘Including meta data when using query_posts’ is closed to new replies.