Skip to content
WJunction - Webmaster Forum

need help on wordpress template

Status
Not open for further replies.

Godric

Experienced Member
591
2011
111
i just installed a new wordpress template that has a preview on the homepage but the problem is it only shows the preview and not the title of the post

i just want the title to appear on the top of the preview

here's the screenshot

zsqveq.jpg


and here's the index code of the template

Code:
<?php 
get_header();
?>

<?php $count = 0;?>
        <?php query_posts('showposts=16'); ?>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<div class="postindex" id="post-<?php the_ID(); ?>">


    
    <div class="entry">
            <a href="<?php the_permalink() ?>" rel="bookmark">
            <img src="<?php $values = get_post_custom_values("poster"); echo $values[0]; ?>" alt="<?php the_title(); ?>" /></a>
        <?php if(function_exists('the_ratings')) { the_ratings(); } ?>  
        <?php if(function_exists('the_views')) { the_views(); } ?>  
    </div>
    


</div>

<?php endwhile; else: ?>
            <h2>Not Found</h2>
            <p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>

                <div class="alignleft"><?php next_posts_link('&laquo; previous') ?></div>
                <div class="alignright"><?php previous_posts_link('next &raquo;') ?></div>

<?php get_footer(); ?>
hope you can help me

thank you
 

3 comments

Status
Not open for further replies.

About the author

G
Experienced Member · Joined
591
Messages
111
Reactions
43
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom