
I am not sure what to do
So I am making a news web site for my journalism class – I want to have a relationship field on my front that brings in curated content from within my site, I’ve been able to make that happen using the following code but I want the posts to display my acf fields and not the wordpress standard fields — every time i put in the acf code it does not render in the page. Can someone assist me? On my admin page i have an acf field called “synopsis” but I’ve had to add “content” instead here jut to get it to show up – i’d rather the loop pull in my acf fields than the typical wordpress fields.
thx in advance. – seth
` <div class=”bloc bgc-white l-bloc b-divider” id=”bloc-4″>
<div class=”container bloc-md”>
<div class=”row”>
<?php $multimedia_test = get_field( ‘multimedia_test’ ); ?>
<?php if ( $multimedia_test ): ?>
<?php foreach ( $multimedia_test as $post ): ?>
<?php setup_postdata ($post); ?>
<div class=”col-sm-3″>
<a href=”<?php the_permalink(); ?>”><?php the_post_thumbnail(array( 275, 275 ) ); ?></a>
<h4 class=”mg-md”><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h4>
<p><?php the_content(); ?></p>
</div>
<?php endforeach; ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
</div>
</div>
</div>
<!– bloc-9 END –>`
This reply has been marked as private.