Title: Problem with Showcategories Plugin
Last modified: February 5, 2017

---

# Problem with Showcategories Plugin

 *  [hazyd](https://wordpress.org/support/users/hazyd/)
 * (@hazyd)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/problem-with-showcategories-plugin/)
 * Hi all,
    I am trying to use the ShowCategories plugin on a blog I am working 
   on ([http://www.teacherstales.co.uk](http://www.teacherstales.co.uk)), and I 
   seemed to have got it working (sidebar categories don’t show up in main blog,
   and are showing in the sidebar) until I realised that the entries that it was
   showing in the sidebar were old entries. When I post new entries to those categories,
   they aren’t showing in the sidebar. Here is the code I am using to display each
   category in the sidebar: `<?php echo show_category_posts('category=5&scp_limit
   =1&scp_status=publish&sort_order=DESC&sort_field=post_name'); ?>
    -  <?php if ($scp_posts) : foreach ($scp_posts as $post) : start_wp(); ?>
    - [" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?>](https://wordpress.org/support/topic/problem-with-showcategories-plugin/"<?php)
      <?php endforeach; ?>
 *  <?php else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?> <?php
   endif; ?>  There is also an issue with it not displaying in firefox (but it works
   in IE). Can anyone help me? Thanks in advance… Hazel

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

 *  Thread Starter [hazyd](https://wordpress.org/support/users/hazyd/)
 * (@hazyd)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/problem-with-showcategories-plugin/#post-73098)
 * Can anyone help?
    Hazel
 *  [dextrine](https://wordpress.org/support/users/dextrine/)
 * (@dextrine)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/problem-with-showcategories-plugin/#post-73113)
 * I have a problem too. When doing exactly what the doc says:
    To omit categories
   from your pages, do the following: In index.php replace: <?php if ($posts) : 
   foreach ($posts as $post) : start_wp(); ?> with: <?php hide_category_posts( ‘
   category=1’ ); ?> <?php if ($hcp_posts) : foreach ($hcp_posts as $post) : start_wp();?
   > Get an error: Parse error: parse error, unexpected ‘}’ xxxx/index.php on line
   50 And the plugin is activated. Hmm… ???
 *  [Kitten](https://wordpress.org/support/users/kitten/)
 * (@kitten)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/problem-with-showcategories-plugin/#post-73114)
 * Hi, I’m the author of Show Categories.
    Hazyd, could you contact me thru my site(
   [http://mookitty.co.uk/devblog/](http://mookitty.co.uk/devblog/)) or find me 
   on [#wordpress](http://irc.freenode.net/wordpress/) (nick: MooKitty) and I’ll
   help you sort it out. Dextrine, somehow, there’s a bracket out of place, double
   check that all closing brackets have a matching opener.
 *  Anonymous
 * [21 years, 10 months ago](https://wordpress.org/support/topic/problem-with-showcategories-plugin/#post-73212)
 * I can’t figure out this problem myself, could someone post the solution for future
   reference.
 *  [thecorch](https://wordpress.org/support/users/thecorch/)
 * (@thecorch)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/problem-with-showcategories-plugin/#post-73213)
 * Here’s the solution, the documentation is flawed. Change this line:
    <?php if(
   $hcp_posts) : foreach ($hcp_posts as $post) : start_wp(); ?> To this: <?php if(
   $hcp_posts) { foreach ($hcp_posts as $post) { start_wp(); ?>

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

The topic ‘Problem with Showcategories Plugin’ is closed to new replies.

 * 5 replies
 * 5 participants
 * Last reply from: [thecorch](https://wordpress.org/support/users/thecorch/)
 * Last activity: [21 years, 10 months ago](https://wordpress.org/support/topic/problem-with-showcategories-plugin/#post-73213)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
