Creating a Looper Query with Conditions

Hi there,

I’m trying to create a template for a Student page that will pull and display the feature image and name from any projects the student has worked on. Both the “Student” and “Student Project” pages are custom post types.

I’m not sure how to properly set up the Looper Provider to target the right information.

The Looper provider type I have setup on the containing row is “Query Builder” and I’ve selected the post type “Student Project”.

The step I’m unclear about is how I target the specific projects within that post type whose field “Author” matches the “Full Name” field of the current student whose page we are on.

The “Author” field is set up with ACF Pro, so each Student Project post has to have an author added. I also have a “Full Name” field setup for the Student posts.

So I need to put together a query to only pull post info where those two fields on the different post types match.

New to loopers here so apologies if this is a basic question.

Thanks for any light you can shed on this!

Hello @BodhiJames,

Thanks for writing in!

We highly recommend that you check out our documentation first:

You can also watch this video demonstration:

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.