Home › Forums › Front-end Issues › ACF Content not showing with multiple query_post › Reply To: ACF Content not showing with multiple query_post
Hi brendan,
I’m having similar problem, I cann’t show ACF fields content, only WordPress “content” textarea value is shown, could you help me?
My code:
$args = array( 'post_type' => 'page', 'name' => 'movies', 'post_status' => 'publish' );
$wp_query = new WP_Query( $args );
$output = "";
while ( $wp_query->have_posts() ) {
$wp_query->the_post();
$output .= apply_filters('the_content', get_the_content());
}
wp_reset_query();
return $output;
Thank you
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.