Forums

Help With Custom Start Page (3 posts)

  1. fury683
    Member
    Posted 3 years ago #

    Ok, so I searched the Codex lots of times, searched Google lots of times, and tried searching the forums, but was unable to find anything useful. Forgive me if I was simply using the wrong keywords, and the answer already exists somewhere.

    Basically, I am trying to setup WordPress for a friend of mine. She wants to display her "About Me" page as the "splash page" (the one that people see if they just enter her domain name with nothing on the end of it (like: http://www.hersite.com). So I went to the page which asks you what to show as the main page, the post list, or a custom static page. Great, I can set the "About Me" page as the home page. HOWEVER, it also asks for what to display as the POSTS page. Now, I am not a seasoned user of WordPress (still learning new stuff every day), but the solution should not be this hard. I am only given the option to set the posts page as another custom page? Ok, so how do I display the post list as it appears by default on a custom page? I have found nothing that explains how to do this. I saw a few hacks that use a "home.php" file in the template folder, but that then says I must use hersite.com/page/1 to view the blog. That's just fine, but when I do that, I still see the "About Me" page.

    I have a feeling the answer is extremely simple and will make me look very foolish, but I need help with this. I am at a loss. Any input would be greatly appreciated!

  2. blogsdna
    Member
    Posted 3 years ago #

    @fury683 no need to feeling foolish, not every one is expert in this field . we always seeks help from fellow experts .
    ok here is one possible solution

    This will require you to have your own custom index.php theme file. This will have two wordpress loop

    1st loop which display about me page

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       <?php if (the_ID()== 'post_id') : ?>
    	   <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    	   <?php the_content(('<strong>Read More...</strong>'));?>
    <?php endif; ?>

    post_id in above loop is post id of your about me page. which you cna get from admin panel

    2nd loop will display recent x posts
    This will be regular wordpress loop which will be already present in your theme

    we might get some more easier method from other community members.

  3. ivorydrive
    Member
    Posted 3 years ago #

    I had this problem, too, and it is totally solved in 2.7 (maybe before), but the documentation is not easy to find. There is a topic in the FAQ called:

    How can I have a static front page and posts display on a page called Blog?

    but the answer is not very good - overly complicated. The short, easy answer.

    1. Create a new Page called Blog (or whatever) that is blank - no contents.
    2. Goto Settings->Reading on the admin page.
    3. In the front page displays, select "A static page"
    4. Pick whatever page you want for your Front page (maybe called Home?)
    5. Pick the above Blog page for the Posts page

    All done. The posts automatically get posted on the empty Blog page.

Topic Closed

This topic has been closed to new replies.

About this Topic