Query string for pulling through posts by Author ID

Hi there,

I’ve got a Team Member page which is a CPT with some ACF fields. One of those ACF fields is to link the team member to a WP user account for the author ID.

The dynamic content snippet for that is: author_id="{{dc:acf:post_field field=“user_profile”}}"

How can I do a Query String that pulls through all blogs that are by that author ID?

Hello, @RubberDuckers,

Thanks for writing to us.

Please have a look at this thread to learn more about Query string.

Hope it helps
Thanks

Thanks Prakash - I’d already read through all the docs and that thread. I’ve tried replicating it but switching from product to post, though I think it’s the author ID that is the bit it doesn’t like.

To do something like this:

post_type=post&author_id={{dc:acf:post_field field=“user_profile”}}

Didn’t need the _id

post_type=post&author={{dc:acf:post_field field=“user_profile”}}

Hi @RubberDuckers,

It seems that you already figure it out! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

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