There is PHP code that when User click on the_title(); then the_content will be emerged.
My problem is that if there are unlimited the_title(); and the_content();, there is problem with generating ID that it must be unique.
How can i generate for href="#id" and id="id"???
<?php
// Start the loop.
while ( have_posts() ) : the_post();
echo '<a href="#id" data-toggle="collapse">';
the_title();
echo '</a>
<div id="id" class="collapse">';
the_content();
echo '</div>';
// End of the loop.
endwhile;
?>