Display Last 50 Posts in Archive Page Sep 8, 2019 • Ulysses Here’s the code to add to your archive template, e.g. archives.php. <pre lang="php"> <h2>Last 50 Posts:</h2> <?php wp_get_archives( array( ‘type’ =?> ‘postbypost’, ‘limit’ => 50, ‘format’ => ‘’, ‘before’ => ‘- ‘, ‘after’ => ‘ ‘ )); ?>