Home › Forums › Front-end Issues › Field Type "User", only show the posts that the "User" is selected › Reply To: Field Type "User", only show the posts that the "User" is selected
Hi @sbrenner7
Can you explain where these posts will appear on the website? Is this on a specific page, or perhaps in the footer?
Firstly, please find the appropriate template file to add the code.
Next, research via google / WP how to get the current logged in user ID.
I have already provided a link above to get you started
Next, use this ID to perform a get_posts query and load the posts based on the custom field value.
Good luck
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.