We help IT Professionals succeed at work.
Get Started

Loop 5 latest posts from Author using custom field in wordpress

Jon Imms
Jon Imms asked
Last Modified: 2012-07-11

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>
                    	<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>

Open in new window

Here is my test page for this template ..... here
Watch Question
Consultant Instructor
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE