How to display on archive pages ?

Vew count: 328

You can display related post under archive pages, you will need to edit  archive.php  file on your current theme and paste the following PHP code inside loop.

<?php echo do_shortcode( '[related_post]' ); ?>

Please see the screenshot how its done.

same way you can use the related post shortcode under category.php , tag.php, taxonomy.php