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)
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.