Home › Forums › Backend Issues (wp-admin) › Trouble Getting Post Content in Relationship Result › Reply To: Trouble Getting Post Content in Relationship Result
Hi @inhouse
That’s because you can’t pass the post ID to the get_the_content()
or the_content()
function. Please check this page to learn more about it: https://codex.wordpress.org/Function_Reference/get_the_content.
If you want to get the content, you need to use the get_post()
function instead. This page should give you more idea about it: http://wordpress.stackexchange.com/questions/9667/get-wordpress-post-content-by-post-id.
I hope this helps 🙂
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.