Support

Account

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();