need help on wordpress template

Discussion in 'HTML & Website Design' started by flizzow, Jul 27, 2011.

  1. #1
    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

    [​IMG]

    and here's the index code of the template

    
    <?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(); ?>
    
    
    Code (markup):
    hope you can help me

    thank you
     
    flizzow, Jul 27, 2011 IP
  2. suryawl

    suryawl Peon

    Messages:
    54
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    add that red code to your code
     
    suryawl, Jul 27, 2011 IP