Forum Replies Created

Viewing 3 replies - 151 through 153 (of 153 total)
  • Thread Starter martinfamily2005

    (@martinfamily2005)

    I tried that before, and I just re-tried it, but it is not working. I just get the query_posts line as text on my index.php.

    Here is the code I used, please advise.

    <?php include("header.php"); ?>
    
    <!-- BEGIN content -->
    <div id="content">
    
    //The Query
    query_posts('posts_per_page=1');
    
    	<?php
    	if (have_posts()) :
    	while (have_posts()) : the_post();
    	?>
    
    	<!-- BEGIN post -->
    	<div class="post">
    		<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    		<a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
    		<?php the_excerpt(); ?>
    		<p class="date"><?php the_time('F j, Y') ?></p>
    	</div>
    	<!-- END post -->
    
    	<?php endwhile; ?>
    	<p class="postnav">
    		<?php next_posts_link('&laquo; Older Entries'); ?> &nbsp;
    		<?php previous_posts_link('Newer Entries &raquo;'); ?>
    	</p>
    	<?php else : ?>
    	<div class="notfound">
    		<h2>Not Found</h2>
    		<p>Sorry, but you are looking for something that is not here.</p>
    	</div>
    	<?php endif; ?>
    
    </div>
    <!-- END content -->
    
    <?php get_sidebar(); get_footer(); ?>
    Thread Starter martinfamily2005

    (@martinfamily2005)

    changed themes.

    Thread Starter martinfamily2005

    (@martinfamily2005)

    Resolved. I found a newer, WP 3.0 ready version of the theme, and it works great!

Viewing 3 replies - 151 through 153 (of 153 total)