Calotropis- how to change categories to list view
-
Hi,
I want my categories to display as a list, title only.
The theme has an option for displaying excerpts, which I have done, but I haven’t been able to figure out list by title only.This help came from another WP.org forum thread, “just delete the template tag <?php the_content() ?> from your theme’s category.php file or, if it doesn’t exist, from the archive.php file”, but I haven’t found the identical code in the archives.php file. There is no category.php in Calotropis.
I am posting the archive.php content here if anyone can help. My site is ivegotahammer.com
Thank you!<?php get_header();extract(itx_get_option(‘front’));?>
<div id=”main” class=”wrap”>
<div id=”mainwrap”>
<div id=”content”>
<div id=”contentpad”>
<div id=”contentwrap”>
<?php
$column=itx_get_option(‘front’,’column’);
if (!is_paged()){
itx_sidebar(‘name=innertop’);
if ($type==’fe’||$type==’fl’){
if (have_posts()){itx_archive_title();the_post();itx_content(‘featured’);}
if ($wp_query->post_count<2) $nosearch=1;
}
}if ($type==’fe’||$type==’fl’){
if(!get_option(‘sticky_posts’)){
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
$offset=’&offset=’.(($paged-1)*get_query_var(‘posts_per_page’)+1);
} else $offset=’&caller_get_posts=1′;
query_posts($query_string.$offset);
}if (have_posts()) {
if (!($type==’fe’||$type==’fl’)||is_paged()){itx_archive_title();}
if ($type==’fl’) echo ‘<div class=”singlepost”>’;
$i=0;
while (have_posts()) {
the_post();
if ($type==’traditional’) itx_single_content(‘singlepost’);
elseif ($type==’fl’) itx_line_content(‘linepost’);
else {
$i++;
$postwrap=ceil($i/$column);
itx_content(‘posts postwrap-‘.$postwrap);
}
}
if ($type==’fl’) echo ‘</div>’;
} elseif (empty($nosearch)) itx_notfound();?>
<div class=”clear”></div>
<?php if (!is_paged()){itx_sidebar(‘name=innerbottom’);}?>
</div>
<div class=”clear”></div>
<?php wp_pagenavi();?>
</div>
</div> <!–/content–>
<?php itx_sidebar(‘name=sidebar&pos=left’);itx_sidebar(‘name=sidebar&pos=right’);?>
</div>
</div> <!–/main–>
<?php get_footer(); ?>
- The topic ‘Calotropis- how to change categories to list view’ is closed to new replies.