general_faq_shortcode
// Add Shortcode
function general_faq_shortcode() {
if( have_rows('grc_faq', 'option') ): ?>
<ul>
<?php while( have_rows('grc_faq', 'option') ): the_row(); ?>
<div class="et-learn-more clearfix">
<h3 class="heading-more"><?php the_sub_field('faq_question'); ?><span class="et_learnmore_arrow"><span></span></span></h3>
<div class="learn-more-content" style="visibility: visible; display: none;">
<?php the_sub_field('faq_answer'); ?>
</div>
</div>
<?php endwhile; ?>
</ul>
<?php endif;
}
add_shortcode( 'grc_general_faq', 'general_faq_shortcode' );