Classifying posts in categories and sub-categories

wordpress_cat_souscat

Following a question from Alixes, here is the trick I have used to organize posts in categories and sub-categories as you can see for each of my posts.

To be clear, I had not this kind of organization in mind, but a matrixed one  :

  • to the top of the page access to the posts through domain names (smarthome, photo, …)
  • to the left of the page, access through contribution type (links, analyze, medias, tests, …)

Method is simple : each post is associated to 2 categories. I have then a list of categories that includes both domain list and contribution type list. The display looks like category/sub-category but it is in reality a concatenation of all categories assigned to the post.

However there is a topic to take care about on topic. I want the shortlink to the post to integrate the domain name (“smarthome”).

Wordpress_cat_linkHow to do that ? Publish post the first time with a single category assigned (“Smarthome”) then modify it to add the second category (“Tests”). The shortlink can also be modified manually if necessary

That’s it …

Vincent Recipon

Propriétaire de ce blog. Owner of this blog.

2 Responses

  1. noaneo says:

    Bonjour,
    il faut des urls courts, mettre la catégorie dans url n’est pas obligatoire, ce qui donne pour le permalien /%category%/%postname%
    on peut choisir /%postname%-%post_id% ainsi on a que le nom de l’article et post_id permet si on créé 2 articles avec le même titre de les différencier par leur id.
    mettre un article dans plusieurs catégories, il y a peut être un risque Duplicate Content.

  2. alixes says:

    Effectivement, j’ai essayé sur mon blog. Ca marche.
    Je n’y avais pas pensé car l’utilisation de plusieurs catégories pour un même article n’est pas conseillé pour le référencement.

    Merci pour l’aide en tout cas.
    Bon courage pour la suite.

    alixes

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.