• I have separate categories but sometimes an article spans more than one Although I know that you can tick multiple categories when writing an article I’m not sure if there are any undesirable consequences. Does the article get duplicated or does it just get linked to the different categories?

Viewing 5 replies - 1 through 5 (of 5 total)
  • No the article doesn’t get duplicated, but does get connected to each category. Technically, for each category assigned to a post an entry is put in the wp_post2cat table.

    On a related theme, how does one get the categories of posts showing on the sidebar, please? I have created multiple categories for my various posts, but the only ones that show on the sidebar are those that have external links.

    Ross, which template are you using?

    Try this:

    <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>

    Carmel,

    I’m using the WordPress Default 1.6 by Michael Heilemann (Kubrick).

    I just pasted your php line in the sidebar (not sure if this was where it should have been pasted!)…anyway, it made no difference, so I deleted it. ARRRRGH!

    If you are using Widgets use the category widget.

    If you are not using Widgets use hide_empty=0 parameter with the template tag, wp_list_categories().

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can you asign more than one category to an article?’ is closed to new replies.