Support » Plugins » Content for single post also appears in category archive

  • Resolved Ottens

    (@ottens)


    I want my sidebar to only appear on single posts. So I added to my content-single.php file the following code:

    <?php get_sidebar(); ?>

    Which largely works. The sidebar isn’t displayed on the front page anymore, nor author and tag archives. But, for some reason, it is in category archives.

    I tried adding a conditional if_single but that doesn’t make a difference.

    Am I doing something wrong?

Viewing 1 replies (of 1 total)
  • Stupid: I forgot to remove the sidebar code from my category.php. Obvious…

    Sorry for the superfluous topic!

Viewing 1 replies (of 1 total)
  • The topic ‘Content for single post also appears in category archive’ is closed to new replies.