WordPress for non-blog website

Discussion in 'WordPress' started by GPS Mapper, Oct 26, 2006.

  1. #1
    Hi,

    I'm a non-techie, wanting to start a new project. I'm familiar and comfortable with WordPress. I can create "pages" with WP. Can I keep a page (or post) on top, so that it always shows if someone just enters the domain? What are the downsides of this approach? I can actually see how I might want to do some blog posts on the site, as long as I could keep the main page/post on top.

    Thanks for any help you can offer.
     
    GPS Mapper, Oct 26, 2006 IP
  2. Yinten

    Yinten Active Member

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Yeah, you can do that. Just have it in your template if you want to keep something always on the top ;)
     
    Yinten, Oct 26, 2006 IP
  3. GPS Mapper

    GPS Mapper Peon

    Messages:
    267
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks. I imagine there is a plug-in that will do it. I just need to search and find it. Though if its a simple code hack, I can usually stumble through it! :)
     
    GPS Mapper, Oct 26, 2006 IP
  4. mikenicholls

    mikenicholls Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi
    I just did this last night for a friends site (its on one of my dev domains which may also be for sale for the right offer)

    www.searchgeek.biz

    You could possibly do it by changing/creating a new page, but from what I can see the home page is referred to in some additional code (ie smart/dynamic side bars etc) depending on the template you are using.

    You need to create a category in Word Press called Front, do a Post with Front as the category. If you are using any of the templates that create menus from the categories, you will need to put
    <?php wp_list_cats('optioncount=0 & exclude=6'); ?>
    where 6 is the ID of the Category

    into the header.php in the template directory)

    You need to take out the PHP code from Index.php (this is in the templatte directorthat shows posts and replace it with this

    <?php $my_query = new WP_Query('category_name=Front&showposts=1');
    while ($my_query->have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID; ?>
    <div class="entry">
    <?php the_content(); ?>
    </div>
    <?php endwhile; ?>

    This will show 1 only post, to change just login and change the post and this will change your front page.

    There might be a simpler way but I couldnt find it.

    Also I have about 30 Wordpress templates and plugins that I zipped into a file which is here to make it easier for people who are trying to get their blog/page up to speed quickly.

    www.searchcorp.biz

    Hope this helps
    Mike
     
    mikenicholls, Oct 26, 2006 IP
  5. mikenicholls

    mikenicholls Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi
    I just did this last night for a friends site (its on one of my dev domains which may also be for sale for the right offer)

    www.searchgeek.biz

    You could possibly do it by changing/creating a new page, but from what I can see the home page is referred to in some additional code (ie smart/dynamic side bars etc) depending on the template you are using.

    You need to create a category in Word Press called Front, do a Post with Front as the category. If you are using any of the templates that create menus from the categories, you will need to put
    <?php wp_list_cats('optioncount=0 & exclude=6'); ?>
    where 6 is the ID of the Category

    into the header.php in the template directory)

    You need to take out the PHP code from Index.php (this is also in the template directory) that shows posts and replace it with this

    <?php $my_query = new WP_Query('category_name=Front&showposts=1');
    while ($my_query->have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID; ?>
    <div class="entry">
    <?php the_content(); ?>
    </div>
    <?php endwhile; ?>

    This will show 1 only post, to change it just login and change the post and this will change your front page.

    There might be a simpler way but I couldnt find it.

    Also I have about 30 Wordpress templates and plugins that I zipped into a file which is here to make it easier for people who are trying to get their blog/page up to speed quickly.

    [www.searchcorp.biz

    Hope this helps
    Mike
     
    mikenicholls, Oct 26, 2006 IP
  6. GPS Mapper

    GPS Mapper Peon

    Messages:
    267
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks Mike. I think I can wade through that okay.
     
    GPS Mapper, Oct 26, 2006 IP
  7. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #7
    just use a plugin called static page for wordpress ...

    ilfilosofo.com/blog/home-page-control
     
    commandos, Oct 26, 2006 IP
  8. cynovatron

    cynovatron Peon

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yep, go ahead and use this plugin - it works well.. You can create a page in your WordPress and assign it to be the front page, and then assign your original blog index page to something like "\weblog" or "\blog"... really cool plugin, I'm using it for my company webbie.
     
    cynovatron, Oct 27, 2006 IP