Results 1 to 5 of 5

Thread: WordPress Homepage

  1. #1
    Registered Giles's Avatar
    Join Date
    Mar 2006
    Posts
    226

    WordPress Homepage

    I want to use a static page rather than a blog post as my wordpress homepage. Is this done by editing the Main Index Template.

    Here's what mine looks like:

    Code:
    <?php get_header(); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
     <div class="data"><?php the_time('F jS, Y') ?></div>
      <h3 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
        <?php the_title(); ?>
        </a></h3>	
    	 <div class="author">Posted 
        in <?php the_category(', ') ?> by
        <?php the_author() ?> <?php edit_post_link('Edit','&nbsp;|&nbsp;',''); ?>
      </div>
      <?php the_content('More'); ?>
      <?php wp_link_pages(); ?>
      <div class="feedback">
        <?php comments_popup_link(__('comments'), __('1 comments'), __('% comments'), '', __('comments off')); ?>
        <span class="link-category">See also in
        <?php the_category(', ') ?>
        </span> </div>
    </div>
    <?php endwhile; ?>
    <div class="page-navigation">
      <div class="alignleft">
        <?php next_posts_link('Previous articles') ?>
      </div>
      <div class="alignright">
        <?php previous_posts_link('Next articles') ?>
      </div>
    </div>
    <?php else : ?>
    <h2>Not found!</h2>
    <p><span class="highlight">Sorry, but you are looking for something that isn't 
      here!</span></p>
    <?php include (TEMPLATEPATH . "/searchform.php"); ?>
    </div>
    <?php endif; ?>
    <?php get_footer(); ?>
    EDIT, I have fixed this using a plugin but i couldnt delete my post. Sorry.
    Last edited by Giles; 05-14-2006 at 02:48 AM.

  2. #2
    Web Monkey MarkB's Avatar
    Join Date
    Nov 2003
    Location
    London, UK
    Posts
    1,783
    Which plugin did you use?
    Stepping On Wires - the new blog

  3. #3
    Working. Masetek's Avatar
    Join Date
    Aug 2005
    Location
    Aust
    Posts
    543
    Id be interested in knowing what plugin you used too. Can you post a link to your site that its running on?
    Last edited by Masetek; 05-14-2006 at 08:26 AM.

  4. #4
    Future AstonMartin driver r2d2's Avatar
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,608
    I used this plugin for a static homepage: http://www.semiologic.com/software/static-front/

    But I later just recoded the homepage to include two other posts - one above and one below the blog entries on my site : http://www.housebuyingguide.co.uk/ If you go to the sitemap you can see the 'Home main' & 'House Buying Guide' posts (I should fix that so it just lists the homepage).

  5. #5
    Registered Giles's Avatar
    Join Date
    Mar 2006
    Posts
    226
    I use http://www.ilfilosofo.com/blog/home-page-control, it works great and all you need to do is choose the page in the drop down box in the options menu. I also use:
    AdSense Deluxe
    Google Sitemap Generator
    SH Autolink
    I imagine I will gather quite a few more over time. Because my domain hasn't propogated you will have to view my site at http://giles.zoomcities.com I would apprectiate any tips or constructive feedback.
    Thanks

Similar Threads

  1. Custom Wordpress themes
    By Cutter in forum HTML, CSS, Layout, and Design
    Replies: 23
    Last Post: 04-03-2006, 03:26 PM
  2. Why is wordpress so slow?
    By Chris in forum General Management Issues
    Replies: 9
    Last Post: 03-01-2006, 07:05 PM
  3. "Link exchange" Homepage!
    By Michel Z. in forum General Promotion
    Replies: 0
    Last Post: 02-05-2006, 01:39 AM
  4. Need Wordpress help
    By pierrebenoit in forum Website Programming & Databases
    Replies: 0
    Last Post: 04-26-2005, 07:09 AM
  5. Getting a good homepage ranking
    By Mike in forum Search Engine Optimization
    Replies: 19
    Last Post: 08-02-2004, 02:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •