Forums

Want my latest post to be the first page. (2 posts)

  1. frlane
    Member
    Posted 1 year ago #

    Greetings,

    I am brand new to WordPress, so please feel free to speak to me like I know NOTHING :)

    Anyway, I am using the EVID theme for my newest WP Site. I would like to link it to a .com, and when the visitor types in the URL, I would like to to go directly to my latest post, similar to when you visit http://www.fitbiz.tv. Is there an easy way to do this?

    Thanks,
    Ray

  2. vtxyzzy
    Member
    Posted 1 year ago #

    So much depends on the theme, and because your theme is not freely available to look at the code, I can't be sure this is applicable. But, it isn't that hard to try.

    1. Make a copy of your index.php and call it frontpage.php.
    2. Add these lines at the top of frontpage.php:
      <?php /*
      Template Name: frontpage
      */ ?>
    3. This is a little tricky. Find the line that has 'if (have_posts())'. If it starts with <?php, insert this line ahead of it: <?php query_posts('posts_per_page=1&caller_get_posts=1'); ?>

      If it does not start with <?php, leave out the <?php and ?>.

    4. Create a new blank page with the title 'Home' and assign it the frontpage template.
    5. Create a new blank page titled 'Blog' and leave the default template.
    6. Go to Admin->Settings->Reading->'Front page displays' and select 'A static page'.
    7. Select 'Home' as the Front page:, and 'Blog' as the Posts page:

    That should do it. Of course, you can use other names for 'Home' and 'Blog' if you wish.

Topic Closed

This topic has been closed to new replies.

About this Topic