Title: single_cat_title return nothing
Last modified: August 19, 2016

---

# single_cat_title return nothing

 *  [ogonkov](https://wordpress.org/support/users/ogonkov/)
 * (@ogonkov)
 * [17 years ago](https://wordpress.org/support/topic/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)

 *  [Mike Toppa](https://wordpress.org/support/users/toppa/)
 * (@toppa)
 * [17 years ago](https://wordpress.org/support/topic/single_cat_title-return-nothing/#post-1055122)
 * This one’s in the docs:
 * > Can be used only outside The Loop.
 * [http://codex.wordpress.org/Template_Tags/single_cat_title](http://codex.wordpress.org/Template_Tags/single_cat_title)
 * If you don’t mind having the category linked, the simplest solution is probably
   to use the_category instead:
 * [http://codex.wordpress.org/Template_Tags/the_category](http://codex.wordpress.org/Template_Tags/the_category)
 *  Thread Starter [ogonkov](https://wordpress.org/support/users/ogonkov/)
 * (@ogonkov)
 * [17 years ago](https://wordpress.org/support/topic/single_cat_title-return-nothing/#post-1055123)
 * Whoa. I will put it outside of code above, and it’s still return nothing…
 *  Thread Starter [ogonkov](https://wordpress.org/support/users/ogonkov/)
 * (@ogonkov)
 * [17 years ago](https://wordpress.org/support/topic/single_cat_title-return-nothing/#post-1055126)
 * bump
 *  Thread Starter [ogonkov](https://wordpress.org/support/users/ogonkov/)
 * (@ogonkov)
 * [17 years ago](https://wordpress.org/support/topic/single_cat_title-return-nothing/#post-1055127)
 * Here i go
    [http://wordpress.org/support/topic/147501](http://wordpress.org/support/topic/147501)
 * Don’t mind, that single.php can cause it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘single_cat_title return nothing’ is closed to new replies.

## Tags

 * [single_cat_title](https://wordpress.org/support/topic-tag/single_cat_title/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [ogonkov](https://wordpress.org/support/users/ogonkov/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/single_cat_title-return-nothing/#post-1055127)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
