Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Categories vs Tags – Bästa praxis för sökmotorsoptimering för att sortera efter ditt content

Läsare frågar oss ofta vad som är bättre för sökmotorsoptimering: kategorier eller tags?

Du kanske inte är säker på vad kategorier och taggar i WordPress egentligen är och hur de skiljer sig åt. Att veta detta kan hjälpa dig att använda dem korrekt.

I den här artikeln kommer vi att förklara skillnaderna mellan kategorier och tags för att organisera ditt content och hur de kan påverka sökmotorsoptimeringens ranking.

Categories vs Tags - SEO Best Practices for Sorting Your Content

Här är vad vi kommer att täcka i denna tutorial. Du kan använda länkarna under för att hoppa till den section du är intresserad av:

Vad är skillnaden mellan kategorier och tags?

Kategorier och tags är båda taxonomier i WordPress. De används för att gruppera dina posts på olika sätt.

Kategorier är avsedda att gruppera dina posts i stort. Tänk på dem som allmänna ämnen eller innehållsförteckningen för din WordPress site. Kategorierna är hierarkiska, vilket innebär att you kan skapa underkategorier.

Å andra sidan är taggar avsedda att beskriva specifika detaljer i dina poster. Tänk på dessa som din sites indexord. De låter dig mikrokategorisera ditt content. Tags är ej hierarkiska.

Till exempel är detta blogginlägg på WPBeginner i vår kategori ’Nybörjarguide’. Du kan se alla posterna i den här kategorin genom att gå till Blogg ” Beg inner Guide i vår navigation menu.

Detta post har också följande taggar: categories, categories vs tags, custom taxonomy, SEO, SEO best practices, sortera efter content, och taggar.

Du kommer inte att se dessa taggar displayed någonstans i artikeln. De hjälper dock användare att hitta artikeln vid relevanta sökningar på vår blogg.

En av de största skillnaderna mellan taggar och kategorier är att alla WordPress posts måste arkiveras under en kategori, men de behöver inte ha taggar.

Om du inte ger din post en kategori kommer WordPress automatiskt att tilldela den till standardkategorin. Denna kategori anropas ”Uncategorized”, men det är ofta bra att byta namn på kategorin ”Uncategorized” till något som gillar ”Other” eller ”Miscellaneous”.

Note: Som standard är det bara blogginlägg som har kategorier och tags i WordPress. Du kan dock lägga till kategorier och tags på dina pages i WordPress med hjälp av ett plugin.

Hur kan du add to kategorier och tags i WordPress?

I WordPress kan du add to kategorier och tags när du skapar eller editerar ett post. Du hittar dem på höger sida under ”Post settings”.

Adding categories and tags when creating a post

Du kan också gå till Posts ” Categories and Posts ” Tags för att add new categories and tags.

Om du vill veta mer om hur du lägger till kategorier och taggar kan du kontrollera våra förklaringar av Vad är en kategori? och Vad är en tagg? för hjälp och vägledning.

Hur många kategorier bör du ha i WordPress?

Det finns inget specifikt antal kategorier som du bör ha. I de flesta fall kommer du att vilja ha någonstans mellan 5 och 10 för att korrekt kategorisera dina poster och göra din site lätt att bläddra i.

Kategorier är avsedda att omfatta en stor grupp av posts. Du kan använda underkategorier och taggar för att dela in dina posts i mindre grupper.

Om du precis har startat en blogg behöver du inte oroa dig för att försöka komma på en perfekt lista med kategorier. Välj bara 3-5 breda kategorier och add to fler efter hand.

Måste du använda underkategorier i WordPress?

You don’t have to use subcategories, and many large blogs (including WPBeginner) don’t. Men underkategorier är till hjälp om du har en stor kategori med många poster som kan grupperas i mindre sections.

Du kan till exempel ha en kategori ”Recipes” som innehåller ett växande antal glutenfria recept.

Posts in the category 'Recipes'

Du kan lägga dessa posts i en egen underkategori så att det är lätt för läsarna att hitta dem. You skapar en new child category för ”Recipes” som anropas ”Gluten-Free” och flyttar dessa posts till den kategorin.

Använda kategorier i URL: erna för dina poster

Vissa webbplatser använder kategorinamnet i permalänkar (URL:er för poster), som du kan ställa in under Settings ” Permalinks.

Including your posts' categories in your URLs

Om så är fallet på din site, kommer din post initialt att ha en URL som gillar detta:
/recept/gluten gratis-pannkakor/

När du har flyttat posten till en child kategori kommer den att ha en new URL:
/recept/glutenfria/glutenfria-pannkakor/

Normalt kommer WordPress att försöka redirecta den gamla URL:en till den nya. Det är definitivt värt att kontrollera att dina links fortfarande fungerar. Om det behövs kan du skapa en 301 redirect från den gamla URL:en till den nya.

Ett annat alternativ är att behålla posten i parent category och även tilldela den till child category, men detta kan ha nackdelar.

Även om WPBeginners website har kategorier i URL:en rekommenderar vi alltid användare att använda en kortare URL-struktur som bara innehåller ”Post name”. Detta ger dig maximal flexibilitet att omorganisera content utan att behöva oroa dig för att sätta upp redirects.

Alla våra nya websites använder den moderna URL-strukturen ”Post name”. WPBeginner är över 10 år gammal, så den har en legacy URL-struktur. Att ändra URL-strukturen rekommenderas inte för sökmotorsoptimering, vilket är anledningen till att vi har klistrat fast oss vid den.

Kan jag tilldela en post till flera kategorier?

WordPress låter dig placera en post i flera kategorier. Det kan vara flera överordnade kategorier eller en överordnad kategori plus en underkategori eller underkategorier.

Att ha flera kategorier kommer inte att gynna din sökmotorsoptimering. Du bör bara tilldela poster till flera kategorier om det är mest meningsfullt för dina läsare.

Det är möjligt att om du har ditt post i flera kategorier kan det orsaka vissa sökmotorsoptimeringsproblem på grund av duplicerat innehåll.

Om du använder flera kategorier, försök då att undvika att placera ett post i två eller flera huvudkategorier (parent). Varje post bör rymmas inom en huvudkategori.

Finns det en limit för hur många taggar ett post kan ha?

WordPress själv har ingen limit på antalet taggar du kan ha på varje post. Du kan potentiellt tilldela 1 000 eller fler taggar till ett post!

Vi rekommenderar dock definitivt inte det.

Syftet med tags är att hjälpa till att länka samman relaterade inlägg. Tänk på dem som en index section i en bok. Varje tagg gillar ett keyword i indexet.

Tags är till hjälp för användare som söker på din site. Vissa tillägg som visar relaterade inlägg använder taggar för att hjälpa dem att räkna ut vilka ämnen som är relaterade till posterna.

Vi föreslår att du normalt klistrar på högst 10 tags per post.

Kategorier vs Tags: Vad är bäst för sökmotorsoptimering?

Finns det några WordPress sökmotorsoptimering fördelar med att använda kategorier över taggar eller vice versa?

Det korta svaret är nej.

Kategorier och taggar har båda olika syften. Du måste använda kategorier, men du behöver inte använda taggar om du inte vill. Vi rekommenderar dock att du använder båda på rätt sätt för att hjälpa läsarna att navigera på din site.

I slutändan bör du utforma din site med användarna i åtanke. All search engines vill visa användarna det content som är mest användbart för dem.

Det innebär att om du organiserar ditt content för bästa möjliga användbarhet kommer det också att hjälpa dig att få bättre sökmotorsoptimering.

Can You Control How Categories and Tags Look in Search Results?

Du kan customize hur dina kategorier och tillägg visas på sökmotorernas resultatsidor genom att använda All in One SEO (AIOSEO), det bästa SEO-pluginet för WordPress på marknaden.

Först installerar och aktiverar du antingen All in One SEO Premium eller det gratis pluginet AIOSEO. För mer detaljer, se vår Step-by-Step guide om hur du installerar ett plugin för WordPress.

Efter aktivering måste du navigera till All in One SEO ” Search Appearance och klicka på tabben ’Taxonomies’ för att konfigurera search appearance för kategorier och taggar.

All in One SEO Taxonomies Settings

Standardinställningarna fungerar för de flesta websites, men du kan customize dem på många sätt.

Vissa användare föredrar till exempel att hindra search engines från att indexera deras kategori och tagged archive listningar. Detta kan hjälpa till att förhindra problem med duplicerat content och uppmuntrar search engines att prioritera dina faktiska posts och pages.

I avsnittet Categories byter du helt enkelt alternativet ”Visa i Search” till ”Nej”.

AIOSEO Search Appearance for Categories

Därefter ska du rulla ner till Tags section och göra samma sak.

Se till att du klickar på knappen ”Save Changes” högst upp eller längst ner på sidan för att lagra dina inställningar. Search engines kommer inte längre att indexera dina categories och tagged archive pages.

AIOSEO Search Appearance for Tags

Expertguider för kategorisering av WordPress content

Nu när du vet hur kategorier och taggar påverkar sökmotorsoptimering kanske du gillar att se några andra guider relaterade till kategorisering av WordPress content:

Vi hoppas att den här artikeln hjälpte dig att förstå kategorier vs tags och sökmotorsoptimeringens bästa praxis för att sortera ditt content. Du kanske också gillar vår guide om hur man spårar WordPress kategori- och tagged-analys och våra expertval för de bästa sökordsoptimeringsverktygen för SEO.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

353 kommentarerLämna ett svar

  1. Syed Balkhi

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Vlad

    It is rare that a post responds in a consolidated way to so many questions. Yours does and thank you for that. I have a question though in regards to a blogsite structure. Mine has one MOVIE tab and sub-tabs for each movie treatment that I write, one MOVIE SCRIPT category for all that posts about the process of writing those treatments or scripts and multiple tags for each posts, some common to multiple posts. The posts (progressive blog log wise) are strictly related to the writing challenges of each treatment or script. I believe that this structure is user friendly as you rightfully label one sample as such.
    Question: How bad or good is my structure though for the SEO?
    Thank you,

  3. Fazal

    Hi, This post has good information but My concern is: how many words we should use in tags. As you gave example of 1 word like ”actor” as a tag. But what if I use: ”hollywood actor” ”american pop singer”

    Please give advise.

  4. Afzal Hameed

    I would like to say thank your for this article, I was only using categories and had posts into multiple categories. Now I have only 5 main categories and separate further using the tags.

    once again thank you for this article

  5. Bhushan Nikhar

    Very well written article. Thank you for clearing doubts! :)

  6. Shannon Suitter

    Your website is so helpful! Thanks so much for this awesome article. I’m always researching new SEO info, and I always find the best answers here.

  7. Bailey

    Finally getting started and learning how it all works, and how to do it well. Thank you so very very much for clearing this up so I can understand! So helpful! I am going to make my first category and get the Yoast plugin now!

  8. Muhammad Ali Pasha

    Thanks for this awesome article, this really helped me

  9. Kristin

    Thank you for this great article!
    This was very helpful!!!

  10. John Thomas

    Thanks for a nice post, its very helpful.

  11. John Allan

    My research as to whether or not WP has a limit to the number of categories has not helped – many people have asked the question in different forums, with no one providing a definitive answer. I’ve now encountered a situation where it seems that WP won’t allow me to add a post to any more categories, although it doesn’t seem to be limiting the actual number of categories that I can have.

    Do you have any suggestions for the best way to handle what I’m trying to do, which is to have the following type of category list for all of the U.S.:

    State Name (Parent)
    City (child)
    City (child)
    City (child)
    State Name (Parent)
    City (child)
    City (child)
    City (child)
    etc.etc.

    As I’m sure you can imagine there will be a LOT of categories with one created for every town and city in every state in the U.S.

    However, I don’t see a better way to do what I need, and ”business directory” plugins and themes that I have looked at so far don’t seem to provide a suitable solution either.

  12. Jaswinder

    Very interesting and useful article on the Subject!!

    I don’t know much about-Category and Tags, learned a bit and will practice on it.

    Thanks.

  13. Saleemiqbal

    Thanks, Really good and helping. My one question is how can hide tags given in the categories.

  14. Beth

    Nice article! Any thoughts on how to treat tags vs categories in Ghost?

  15. kishore kumar

    Hello,mam this is kishore from India.i always follow your advices.but I have one question,how to write article which has h1,h2 & information,as you are aware that in wordpress.it has no column or row features that options.thank you and you are awesome.

  16. Ryan

    Awesome post, really useful – i’ve never considered duplication of content through categories and tags.
    Our site is a male grooming, lifestyle and men’s fashion blog. Because these subjects are quite broad we have sub categories too. For example, skincare within male grooming.
    When we upload skincare articles we add them into skincare and male grooming – does this affect our SEO? Should I put one of them as non index? Or leave it as it is?
    If we were to be more specific in regards to skincare, for example acne, should i add this as a sub cat or a tag? FYI, we use acne as a drop down within our skincare menu but using it as a tag shows ”tag” in the URL when once clicked on acne.
    Any advice would be much appreciated.

  17. baguzinfomedia

    I have a wordpress site with many tags. probably around 12,000 tags. with 140 posts. whether many tags will create a negative effect on my wordpress site? because I see my visitor on the wane.
    please provide an explanation. if necessary, I will remove my tag

  18. Aisha

    Thanks for this article!
    I still have a doubt
    1. my parent category an the sub category are showing the same post, is there a matter of duplicate content?
    2. Also my categories represent a similar class of objects, so the sub categories of most of them are same, again should i worry about duplicate content?
    Please give me some advice on the noindex and nofollow thing.

  19. Sanjay Banerjee

    Thanks a lot for this post

  20. Poonam

    A very useful post. This article gave me a very clear understanding about how should I use categories and tags on my new blog. The suggestion that I should focus on readers instead of search engines makes sense too.

    Thanks a lot!

  21. JC

    nice sharing. tks
    so use caterogies for better blog layout

  22. Nicki Lewis

    This was very informative. I am trying to resetup my blog and am going to keep this in mind

  23. Joost

    Good post! I have one question. I have a tv series blog and i wrote that you should no index one of the two: categories or tags. Is that true? or can i index both taxonomies?

    • WPBeginner Support

      You can index both taxonomies. However, if they have totally similar posts then this could be treated as duplicate content.

      Administratör

  24. Lezly

    If you create a sub-category, do you put the post in both the parent & sub-cat or just the sub-cat?

    Thank you for this helpful article.

    • LeChat

      Hello, thank you for the great article. Really comprehensible.
      I have the same question as Lezly. The post will have to be added to both Category & Sub-Cat so the user could either see all posts under Category, or if they wish only see the specific posts of Sub-Cat. Is that correct?
      I don’t know about duplicate content & google, from your article it sounds like i have to do some research.
      Also, if tags are not used via the search for people to find the article in the blog then i would not use any… would that be a mistake search-wise?
      Many thanks.

  25. Tasos Perte Tzortzis

    I have a brand new blog / site and now I can understand crystal cleared what is going on with the taxonomies inside WordPress.

    I was only using categories and had posts into multiple categories.Now I have only 3 main categories and seperate further using the tags.

    Thank you for this article

    Tasos

  26. Mohit

    Thanks for such a nice info…I have recently created my wordpress Blog and was desperately looking for this info..Thanks again

  27. Betty

    Hi … a great article for a beginner like me! I have a question. My blog is about places I have traveled. Every place will be assigned a destination category and an interest (inspiration) category. Here are my categories (every post will be assigned two categories) The structure looks like this
    Cat 1:Destination
    Sub Cat 1: Africa
    Sub Sub Cat 1: Kenya
    Sub Sub Cat 2: South Africa
    Sub Cat2: United States
    Sub Sub Cat 1: Florida
    Sub Sub Cat 2: New York
    Cat 2: Inspiration
    Sub Cat 1: Safari
    Sub Cat 2: Beach and Sun
    My questions emphasizes mainly on the impact of Archive pages and SEO. So here is my question: in WordPress when I assign a category for a blog about a safari in Africa — would the categories be (1) Kenya and Safari or (2) Destination, Africa, Kenya, Inspiration, Safari?
    I am trying to limit myself to two categories for every post.

    • Susan

      I like Kenya and Safari. But I’d be curious about the path of the final asset.

  28. Suis

    Hi, thats a great article thanks a lot. I have a web site that i am writing reviews about health classes in my city. I have health classes(main cat.) > yoga classes (sub) and pilates classes (2nd sub.)

    But sometimes, a health center gives yoga and pilates lessons together so i am assigning my post to each category. This is for users, i hope google will not punish my site because of that otherwise do i have chance to see the problem on web master tools?

  29. Ammar

    Hey, is it good to index Categories & Tags In WordPress SEO By yoast for using it in Google Webmaster Tools?

  30. WPBeginner Staff

    You change the category slug by editing a single category. Go to Posts > Categories select the category you want to edit and then change its slug. This slug will then be used in the URL. You categories title and slug can be different.

  31. Abinash Mohanty

    This is quite useful! I have a question. If I have to define a category name such as ”Graphic Design” in two words then what would be the final url look like ”graphic-design”? Does it add hyphen in between automatically? Another live example on your site that I came across with the way you have added the category name ”WORDPRESS PLUGINS” while on the URL it shows only ”plugins”, how did you do that! I wonder if you can help me out with the above 2 questions. Thanks :)

  32. Jing Cucio

    got it. well explained. Thanks!

  33. Stacey Van Horn

    Explained in language I could understand … thanks!

  34. guil2209

    The meta description for categories depends on the category, right? Why is it asking to write a meta description in Titles & Metas settings then?

  35. J. Kristina

    This was very helpful!!

  36. reseo

    Question about the site structure.

    Let’s say my site is cookies.com (which isn’t – I just try to layout a simple example)

    Let’s further say, I build the following categories:

    – Sugar Free Cookies

    – Gluten Free Cookies

    – Vegan Cookies

    As we can see, every category has the word “cookies” in it. If I understood the concept right, I should have the following perm structure:

    cookies.com/sugar-free-cookies/

    cookies.com/gluten-free-cookies/

    cookies.com/vegan-cookies/

    Question:

    Since I do have the word cookies already as my root domain… wouldn’t it be sufficient enough to have the following word structure only:

    cookies.com/sugar-free/

    cookies.com/gluten-free/

    cookies.com/vegan/

    Good idea ? Or bad idea ?

    Thank you so much for any little help,

    appreciate it !

    • Rustem Gareev

      Yes, it’s good idea both for your site users and for SEO

    • Susan

      Agree ^^^. You don’t need to repeat cookies. It’s actually a best practice not to repeat it. Your suspicions are correct.

  37. Caroline Oakes

    Thank you. Great post — very helpful!

  38. Tommy

    Thanks. Good stuff

  39. Bharat

    Really a awesome article with valuable information.

  40. Mike

    Hi,
    Nice article. And i just wanted to say thank you for this website. This site has become my ”go to” whenever I’m looking for answers on Google. Whenever i have questions this site is right up there, that’s cool. I’ve just started using wp to build a personal blog, and a great deal of my required knowledge has come from here. So thank you Syed, very much!!
    Mike

  41. Niek

    Really interesting article! It helped me out on the right track but I do have a question though :-)

    Currently I am creating a wordpress website. I allready developped this website
    myself in asp.net, but I no langer have the time to keep up developping it, so I am choosing WordPress to be my new platform.
    My begist issue is how to categorize everything. And I hope some-one can help me out.
    I have a lot of content which is related to each other. Here is how my content is related:

    Breeds ->
    Breed A ->Info about the breed
    ->Dog Sellers
    ->Pictures
    ->Breeding-group

    Breed B ->Info about the breed
    ->Dog Sellers
    ->Pictures
    ->Breeding-group

    Illnes -> All kind of diseases from which a lot of diseases can be related to a specific breed (So I think tags?)
    Training -> All sorts of training abilities which can be breed related (So I think tags?)

    My breeds are about 250. So here is where my concern is. How do I have to categorize this? Just as I mentioned above? My main concern is that I have to put in a lot of sub-categories.

    (If you take a look at my website as it is now maybe you can understand my concern about how to categorize everything.

    Regards,
    Monique

  42. Michael McGinnis

    If you use link rel=’canonical’, you don’t have to worry about any duplicate content penalty. That meta tag tells Google to use that as the official URL for the page, and to ignore any other URLs that point to it. Canonical URLs have been part of the standard WordPress default themes for years, I think.

  43. Ayaz Mazhar

    Thank you!. I am WordPress coder. Your analogy really helped me alot about category and tags concept.

  44. Caroline

    Thanks so much for this explaination – I was wondering if it is possible to somehow group posts tagged as specific categories into different sections in a WordPress site so that it’s not one long stream of posts? For example, the wpbeginner site has tabs/buttons for ’Recent articles’, ’popular articles’…how did you guys make the tabs? Are they category/tag based?

    Thanks guys!

  45. Drew Taylor

    Now i am wondering where to draw the line between sub-categories and tags though, or when to choose one over the other..

  46. Drew Taylor

    Very helpful article.. Your book analogy made these concepts very easy to understand..

  47. Swayam Das

    You have explained it quite well. Now I was wondering that if I post to multiple categories which has sub-category also. For maybe SEO reasons, I ”noindex, follow” the main category. Will this be a problem for indexing my subordinate categories under that main category?

  48. Nico

    Hi,

    Thanks for an interesting and easy readable article!

    I am very new to WP, SEO, so excuse my questions if they are a bit simple, but:

    1) What is the link between Categories, Sub-categories, Tags (C,SC,T) and simple ’keyword-search’ on the website ?

    2) And regarding the line before the last paragraph: ”The goal is always to make the site as user friendly as possible…” Who is my user?: Readers e.g. privat induviduals who will look for C, SC,T, to reach their point of interest fast and effectively, Marketers e.g. people who want to place ads vis-a-vis C, SC, or T, or Search Engines who wants to match input search with output (also) by way off C,SC, and T? I guess the user point of view will influence how you structure and organize your contents.

    3) Are there strategies for organizing for commercial vs private engagement.

    With further thought, I guess ”Tags” equals ”Topic or Subject” and I guess marketers will advertise towards ”Topics/Subjects” rather than keywords found through keyword-search mostly relevant for subjective versus generic advertisement. This still, however, requires that you strategize your C,CS, and T, intelligently and efficiently.

    Perhaps we can continue the discussion a bit further?

    Thanks.

  49. Anthony

    Thanks! Very helpful. I was and still am concerned about the duplicate content issue and am probably going to stick with one category for each article I write while having multiple tags. I think SEO-wise this is the best strategy. Google has been very aggressive about duplicate content and I have been personally penalized for duplicate content on other sites.

    Single Category / Multiple Tags. I feel in my gut that this is the way to go.

  50. Nicolas

    Thank you, really instructive and really helping.
    You just solved a big issue I have every time I start a new blog – plus you gave me something priceless: the importance of NOT bothering too much with categories and tags at the beginning of a blog!
    Cheers!

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.