Loop wont show the_date or the_title of the page (1 post)

  1. justinledelson
    Posted 3 years ago #


    I am trying to get my archives page to show the title of the page, ex. Archives of July 2013. and the date for each post. For some reason, It is only showing the title of the first blog post and the date show up only for the first blog post too.

    See it live: http://vividcandi.net/telescope/2013/07/

    Here is my code.

    <?php get_header(); ?>
    <!-- Row for main content area -->
    	<div id="side-nav" class="small-12 large-3 columns">
    		<div class="side-area">
    			Recent Posts
    		<hr />
    		<?php query_posts('category_name=blog&showposts=15'); ?>
                    <?php while (have_posts()) : the_post(); ?>
    				<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_date(); ?></li>
    				<?php endwhile; ?>
    				<?php wp_reset_query() ?>
            <div class="side-area">
    			<hr />
    				<?php get_archives(); ?>
    	<div class="small-12 large-8 columns" role="main" id="content">
    	<h1 class="entry-title"><?php the_title(); ?></h1>
    	<?php /* Start loop */ ?>
    	<?php while (have_posts()) : the_post(); ?>
    		<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
    				<a href="<?php the_permalink() ?>"><h1 class="entry-title"><?php the_title(); ?></h1></a>
    			<div class="entry-content">
    					if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
    				<?php the_excerpt(); ?>
    			<div class="read-more"><a class="button" href="<?php the_permalink() ?>">Read More</a></div>
    	<?php endwhile; // End the loop ?>
    	 <?php wp_reset_query() ?>
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by justinledelson
  • This topic is not resolved
  • WordPress version: 3.5.2