• After searching here and @ google I have to admit this theme has gotten the better of me. I’ve editted themes before so they show only one category on the index, but in this theme I can’t get it to work.

    I can make it display only 1 category no matter where you are and I can break the theme — but that’s about it :/

    Here’s the index.php file:

    <?php get_header(); ?>
    
    			<div id="content">
    				<?php if ( is_category() ) { ?>
    				<h2 class="special">
    					<span>Category</span>
    					<strong><?php single_cat_title() ?></strong>
    				</h2>
    				<?php } elseif ( is_tag() ) { ?>
    				<h2 class="special">
    					<span>Tag</span>
    					<strong><?php single_cat_title() ?></strong>
    				</h2>
    				<?php } elseif ( is_day() || is_month() || is_year() ) { ?>
    				<h2 class="special">
    					<span>Archive</span>
    					<strong><?php single_month_title(" ") ?></strong>
    				</h2>
    
    					<?php } else { ?>
    
    				<h2><span>recently featured posts</span> <small>we've got <?php $count_posts = wp_count_posts(); echo $count_posts->publish; ?> articles so far</small></h2>
    				<?php } ?>
    
    				<?php while (have_posts()) { the_post(); ?>
    
                   			<div class="post" id="post-<?php the_ID(); ?>">
    					<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><span><?php the_title(); ?></span> <small><?php comments_number('0','1','%'); ?></small></a></h3>
    
    					<?php if ( $img = get_post_meta($post->ID, "image", true) ) { ?>
    					<div class="headline">
    						<a href="<?php the_permalink() ?>">
    							<img src="<?=$img?>" alt="" />
    							<span><?php the_time("M<b\i\g>j</b\i\g>") ?></span>
    						</a>
    					</div>
    
    					<? } else { ?>
    					<div class="date">
    						<span><?php the_time("M<b\i\g>j</b\i\g>") ?></span>
    					</div>
    					<? } ?>
    
    					<div class="text">
    						<?php the_content('continue reading &raquo;'); ?>
    					</div>
    				</div>
    				<?php } ?>
    
    				<ul class="nav">
    					<li class="prev"><?php next_posts_link('Previous Entries') ?></li>
    					<li class="next"><?php previous_posts_link('Next Entries &raquo;') ?></li>
    				</ul>
    			</div>

    I know this should be easy, but apparently not easy enough for me ?? Non of the solutions I found worked, and I found quite a few.

    Any help on this would be greatly appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘FREEmium theme: display only one category?’ is closed to new replies.