Make Archives Pages show only post titles
-
Hello, I’m not a super PHP code person so I’m needing a little help…. currently my Archives pages (category/tags/archives) all show the FULL posts… I would like them to show everything EXCEPT the content of the post…. so basically just the title, comments.
Here is a section of my archives.php file (hopefully I can post code here…)
what do I need to change to get the result I want?? Anybody??<div id="content"> <!--the loop--> <?php if (have_posts()) : ?> <h1> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <?php echo single_cat_title(); ?> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> Archive for <?php the_time('F jS, Y'); ?> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> Archive for <?php the_time('F, Y'); ?> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> Archive for <?php the_time('Y'); ?> <?php /* If this is a search */ } elseif (is_search()) { ?> Search Results <?php /* If this is an author archive */ } elseif (is_author()) { ?> Author Archive <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> Blog Archives <!--do not delete--> <?php } ?> </h1> <!--loop article begin--> <?php while (have_posts()) : the_post(); ?> <!--post title as a link--> <div class="posts"> <div class="xsnazzy"> <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b> <div class="xboxcontent"> <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <?php the_title(); ?> </a></h3> <div class="post_top"> <span class="auth">Posted by <?php the_author_posts_link(); ?> <?php the_time('j F, Y') ?> </span> <span class="commentp"> <?php comments_popup_link('(0) Comment', '(1) Comment', '(%) Comment'); ?> </span> </div> <!--read more--> <?php the_content('Read the rest of this entry'); ?> <!--Rateing--> <?php if(function_exists('the_ratings')) { the_ratings(); } ?> <!--Rateing end--> <div class="post_bottom"> <div class="post_bottom2"> <span class="category">Categories : <?php the_category(',') ?></span> <span class="tags">Tags : <?php if (function_exists('the_tags')) { ?> <?php the_tags('', ', ', ''); ?><?php } ?> </span> </div> </div><!--post bottom end --> </div> <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b> </div> -
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘Make Archives Pages show only post titles’ is closed to new replies.