Display the answer below the question

3.86K viewsThemes
0

Hi,
I want to know if it’s possible to display the answer below the question, or in a accordion.
Thanks

Answered question
0

You mean on list page? I will not recommend doing this as this may significantly slow down page loading.
You can simply use this in question loop:

<?php if ( ap_have_answers() ) : ?>
      <?php
     while ( ap_have_answers() ) :
      ap_the_answer();
?>
      <?php include ap_get_theme_location( 'answer.php' ); ?>
     <?php endwhile; ?>
     <?php endif; ?>

Answered question