Forums

Can you asign more than one category to an article? (6 posts)

  1. Washerhelp
    Member
    Posted 4 years ago #

    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?

  2. MichaelH
    Volunteer
    Posted 4 years ago #

    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.

  3. RossBuncle
    Member
    Posted 4 years ago #

    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.

  4. Carmel
    Member
    Posted 4 years ago #

    Ross, which template are you using?

    Try this:

    <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
  5. RossBuncle
    Member
    Posted 4 years ago #

    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!

  6. MichaelH
    Volunteer
    Posted 4 years ago #

    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().

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.