Avatar of Jon Imms
Jon Imms
Flag 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
WordPressPHPHTML

Avatar of undefined
Last Comment
Ovid Burke

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ovid Burke

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy