Support

Account

Home Forums Backend Issues (wp-admin) Using ACF with the Genesis Framework Reply To: Using ACF with the Genesis Framework

  • you can use genesis and acf without problems.
    probably best is to use custom template.

    HowTo: a custom post single or archive template for genesis

    <?php
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'your_custom_loop' );
    
    function your_custom_loop() { ?>
    <article itemtype="http://schema.org/CreativeWork" itemscope="itemscope" class="post-<?php print $pageid; ?> page type-page status-publish entry">
    <div class="entry-content" itemprop="text">
    <?php if(have_posts()) : while(have_posts()) : the_post();
    echo get_field('my_acf_fields');
    endwhile; endif;	
    ?>
    </div></article>
    <?php }
    genesis();

    try something like above (of course you need to edit the loop that it fit your needs)