• Is it possible to somehow force the users to land on the single.php (latest post) instead of the standard main page (index.php)?

    For example:

    Is a user visits my blog which is https://meme-lol.com/ i want them to directly land on the latest / first post instead (With the url: https://meme-lol.com/xxxxxxxxx/ )

    Is that possible to make? i cannot find any option for this in the admin section

Viewing 1 replies (of 1 total)
  • Thread Starter phattrance

    (@phattrance)

    i used the following code on my index.php that seems to be working fine. but will google punish me is i use the 302 redirect on the main page?

    <?php
    query_posts($query_string.'&posts_per_page=1');
    the_post();
    wp_redirect(get_permalink(), '302');
    return;
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Force users to land on SINGLE.PHP instead of INDEX.PHP?’ is closed to new replies.