Category: Wordpress

5 Valentine’s Day Wordpress Theme

date 12 Feb 2008 | category Wordpress Themes

advertisements

5 Nice Wordpress theme to accompany you thru Valentine’s Day

1) Valentine Wordpress Theme: Lucy Heart

Lucy Heart

2) Valentine Wordpress Theme: Valentine 1.0

Valentine 1.0

3) Valentine Wordpress Theme: Love Birds

Love Birds

4) Valentine Wordpress Theme: Pink White Valentine

Pink White Valentine

5) Valentine Wordpress Theme: Love Bugs

Love Bugs

How To Make WP Show Only One Post On The Front Page?

date 11 Feb 2008 | category How To, Wordpress

Follow the steps to make wordpress show only one post on the front page.

1) Make a copy of the index.php file thats in your worpress theme directory

2) Rename the index.php file to home.php

3) At the top of home.php, you need to make a call to query_posts

  1. REPLACE THIS CODE
  2. <?php get_header(); ?>
  3. WITH THIS CODE
  4. <?php
  5. get_header();
  6. query_posts('posts_per_page=1'); //returns only the front page
  7. ?>

The home.php file will take over the role of index.php and be used for front page display.

This way, you will not interfere with the number of posts shown on Categories and Archives if you had changed the number at the Reading Options.

You can easily change the number of posts per page by changing the (’posts_per_page=1?) to any number you want.

How to Exclude Wordpress Pages from List

date 08 Oct 2007 | category How To, Wordpress

Sometimes you created a wordpress page for some purpose but you do not want that particular page to be listed out. This is a coding to Exclude the Wordpress Pages from List.

<ul>

<?php wp_list_pages(’exclude=17,38′ ); ?>

</ul>

wp_list_pages() –> displays a list of WordPress Pages as links
exclude –> the arguments to exclude pages
17,38 –> page ID of the page you want to prevent from listing

More Coding regarding wp_list_pages