Home › Forums › Backend Issues (wp-admin) › Using ACF with the Genesis Framework › Reply To: Using ACF with the Genesis Framework
Awesome using your code mediawerk in my single-movie.php file helped!
I really got going with it! Here is the code that I am using:
(Let me know if there is anything I should adjustment.)
remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
add_action( ‘genesis_loop’, ‘your_custom_loop’ );
function your_custom_loop() { ?>
<div class=”movie-content”>
<?php if(have_posts()) : while(have_posts()) : the_post();
/* Custom meta boxes */
echo ‘<div class=”intro-tekst”> ‘ . get_field(‘intro_tekst’) . ‘ </div>’;
echo ‘<div class=”trailer”> ‘ . get_field(‘trailer’) . ‘ </div>’;
echo ‘<div class=”synopsis”> ‘ . get_field(‘synopsis’) . ‘ </div>’;
echo ‘<div class=”teknisk-info”> ‘ . get_field(‘teknisk_info’) . ‘ </div>’;
echo ‘<div class=”images”> ‘ . get_field(‘images’) . ‘ </div>’;
endwhile; endif;
?>
</div></div></article>
<?php }
genesis();
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!
Our guide looks into WordPress custom fields and how they stack up against the possibilities of ACF.
— Advanced Custom Fields (@wp_acf) July 18, 2022
https://t.co/hk3yibkHyk
© 2022 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.