Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-14-2010, 06:43 PM   PM User | #1
marko3333
New to the CF scene

 
Join Date: Dec 2010
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
marko3333 is an unknown quantity at this point
Home page posts

Hi,

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:
Code:
<?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;		
} 
query_posts($category."&paged=$paged&showposts=$number_posts");

get_header();

	//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'); ?>
            </div>
        <?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" />
            </div>    
        <?php endif;?>
	<?php endif; ?>
	
	<?php if (have_posts()) : ?>
		<?php
        $i = 0;
        while (have_posts()) {
            the_post(); 
            include(dirname(__FILE__).'/post.php');
            
			//Insert custom content between posts
			if ($html = get_option($shortname.'_custom_html_'.$i)) {
                echo "<div class='customhtml'>$html</div>";
            }
        $i++;
        }
		?>
	<?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>
    </div>

<?php get_footer(); ?>
marko3333 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:52 AM.


Advertisement
Log in to turn off these ads.