View Full Version : Home page posts

12-14-2010, 06:43 PM

With the theme that I am using the only way that I can write my own content is to have a post first. I would like to change this to make my home page more attractive. If anyone has any suggestions that would be great, thanks

here is my site: http://www.pokerpouch.com

Here is the home.php:

global $shortname;

$number_posts = (get_option('posts_per_page')) ? get_option('posts_per_page') : 6;

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

if (is_active_widget('widget_myFeature')) {
$category = "showposts=$posts&cat=-".$options['category'];
} else {
$category = "showposts=".$posts;


//Featured Content Gallery section on the homepage
if (is_home() && !isset($_GET['paged'])) :?>
<?php if(function_exists('gallery_styles')) :?>
<div id="fcg-slides">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
<?php elseif(isset($_GET['preview']) && isset($_GET['template'])):?>
<div id="fcg-slides">
<img src="<?php bloginfo('template_url')?>/images/fcg-feature-demo.jpg" alt="Plugin Demo" />
<?php endif;?>
<?php endif; ?>

<?php if (have_posts()) : ?>
$i = 0;
while (have_posts()) {

//Insert custom content between posts
if ($html = get_option($shortname.'_custom_html_'.$i)) {
echo "<div class='customhtml'>$html</div>";
<?php endif; ?>

<div class="navigation">
<p class="alignleft"><?php previous_posts_link('Latest posts'); ?></p>
<p class="alignright"><?php next_posts_link('Older posts'); ?></p>

<?php get_footer(); ?>

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum