the_excerpt question
-
When I click on “read full story” under my post, it doesn’t show the full post but just give me a black page.
Have a look at my code please:
<?php get_header(); ?> <!-- BEGIN content --> <div id="content"> <?php wp_blogmark(); $temp_query = $wp_query; query_posts(array('post__in'=>array(dp_settings('featured')))); if (have_posts()) : the_post(); ?> <?php endif; ?> <?php include("csidebar.php"); ?> <!-- BEGIN content content --> <div id="ccontent"> <h2>Recent Articles</h2> <?php $wp_query = $temp_query; if (have_posts()) : while (have_posts()) : the_post(); $arc_year = get_the_time('Y'); $arc_month = get_the_time('m'); $arc_day = get_the_time('d'); ?> <!-- begin post --> <div class="post"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <p class="details"><a href="<?php echo get_day_link("$arc_year", "$arc_month", "$arc_day"); ?>"><?php the_time('M j, Y') ?></a> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p> <?php dp_attachment_image(0, 'thumbnail', 'alt="'.$post->post_title.'"'); ?> <?php the_excerpt(); ?> <div class="break"></div> <a class="readmore" href="<?php the_permalink(); ?>">Read the story »</a> </div> <!-- end post --> <?php endwhile; ?> <p id="postnav"> <?php next_posts_link('« Older Entries'); ?> <?php previous_posts_link('Newer Entries »'); ?> </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 content --> </div> <!-- END content --> <?php get_sidebar(); get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘the_excerpt question’ is closed to new replies.