Link to home
Start Free TrialLog in
Avatar of Jon Imms
Jon ImmsFlag for United States of America

asked on

Loop 5 latest posts from Author using custom field in wordpress

Hi,

I am creating a meet the team template, with the aid of the Advanced Custom Fields plugin in Wordpress.  

Each user/team member will be an author of some posts. What i would like to do is have a custom field which is author_id   you enter the user id of this user in the custom field,  and it will then display the latest 5 posts from that particular author.

I have the HTML of how i would like it to be displayed
<div class="bio-right">
                	<h3>Latest Articles</h3>
                    <ul>
                    	<li class="fix"><a href="#">Some post 1</a><span class="bio-meta">June 21 2012</span></li>
                        <li class="fix"><a href="#">Some post 2</a><span class="bio-meta">June 21 2012</span></li>
                        <li class="fix"><a href="#">Some post 3</a><span class="bio-meta">June 21 2012</span></li>
                        <li class="fix"><a href="#">Some post 4</a><span class="bio-meta">June 21 2012</span></li>
                    </ul>
                </div> 

Open in new window


Here is my test page for this template ..... here
ASKER CERTIFIED SOLUTION
Avatar of Ovid Burke
Ovid Burke
Flag of Saint Vincent and the Grenadines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial