Tagged: redirect
When I add this code to index file, it doesn’t work. It says it encountered redirect problem.
<?php require(‘./wp-blog-header.php’); if (have_posts()) : the_post(); header(“location: “.get_permalink()); exit; endif; ?>
How can I have the home page automatically re-direct to most recent post?
Hi tyson,
To have automatically display your blog goto dashboard-> settings-> reading and choose your latest post. Then your latest post will be displayed in your index file.
Thank you!