Support » Fixing WordPress » single_cat_title return nothing

  • Strange things with me and WordPress today.

    <?php single_cat_title(); ?> return nothing inside loop. Please, what wrong here?

    Full Code:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
    			<h2><?php the_title(); ?></h2>
    			<div class="entry">
    <?php single_cat_title(); ?>
    				<?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'kubrick') . '</p>'); ?>
    
    				<?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    				<?php edit_post_link(__('Edit this entry', 'kubrick'),'','.'); ?>
    			</div>
    		</div>
    	<?php comments_template(); ?>
    	<?php endwhile; else: ?>
    		<p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p>
    <?php endif; ?>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘single_cat_title return nothing’ is closed to new replies.