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. Dennis Muthomi

    I find tags super helpful for connecting related content and helping users discover more of my posts
    but I have a question about tags:- is there a way to track which tags are getting clicked the most?

    • WPBeginner Support

      If you are using an analytics plugin on your site, that would give you that information :)

      Administratör

  3. Dade

    Hi, in the article you mentioned all of your new ”websites use the modern ‘Post name’ URL structure.”

    But it isn’t stated why.

    Do you have troubles with analyzing performance when both pages and post content is off the root domain?

    • WPBeginner Support

      The main reason is to make it easier for users to remember your URLs. It would depend on the organization of the site for how difficult analytics would become.

      Administratör

  4. mohadese esmaeeli

    with this simplicity, I’ve grasped the concept of tags and categories. In reality, categories serve for content differentiation, and tags are considered internal classifications within the site.

    • WPBeginner Support

      That is one way to separate them certainly :)

      Administratör

  5. mohadese esmaeeli

    With tags, you can create more detailed internal categorizations. For example, consider that the WordPress installation tutorial is placed in the WordPress tutorials category, and the Joomla installation tutorial is placed in the Joomla tutorials category. What is the commonality between these two? Both are content management systems. So, you can assign a tag called ”CMS” or ”Content Management System” to both. Someone looking for various content management systems can click on this tag to access tutorials on installing content management systems.

  6. Jiří Vaněk

    I would like to ask. I have categories and sometimes I have a label that has the same category name. For example WordPress category and WorPress tag. For each label and category with the same name, I also have the same labels. But Yoast SEO already pointed out to me that it is not good from SEO point of view to use the same keywords. So is it better to target slightly different keywords and use different labels for both? And the second question, is it good to index categories and tags or not?

    • WPBeginner Support

      Indexing categories and tags is good for SEO, it is normally best to have different words for your tags and categories.

      Administratör

      • Jiří Vaněk

        Thanks for reply. I wil try to make some changes in description of both. I thought that it could be the same, but it is true that this way both the tag and the category can find use under slightly different keywords.

  7. THANKGOD JONATHAN

    Categories and tags are what is helping me in my blog search filter. Without them it couldn’t have been that easier. They are all important

  8. Juan

    I’ve considered naming my post categories as post formats (articles, podcasts, videos, etc.). Is that a clever idea, or should I stick to the website’s topics/subtopics?

    • WPBeginner Support

      It would heavily depend on your specific site and its content.

      Administratör

  9. Sajid

    where is your tags?

    • WPBeginner Support

      At the moment we do not have tags visible to be searched.

      Administratör

  10. tayyab

    thanks for information

    • WPBeginner Support

      You’re welcome :)

      Administratör

  11. Karin

    Thanks for the great article, very helpful!

    • WPBeginner Support

      Glad our guide was helpful!

      Administratör

  12. Vinny Hguen

    Excellent article! I love how you explained these two abstract terms in simple languages along with relatable examples.

    Keep up the good work!

    • WPBeginner Support

      Glad you found our guide helpful :)

      Administratör

  13. Sue Davies

    I have a parent category ”Jewellery”, which has a sub category ”Earrings”. Many of my products are earrings, so they are listed in the Earrings Category. I have tagged them all with ”earrings”. Is this OK, or should I avoid doing that? I have optimised the Earrings Category in SEO, but not sure what to do with the orphaned tags for ”earrings”, ”blue”, ”crystal”, ”sapphire”, etc.

  14. Andre

    What I’m curious about is if a URL has the parent category/subcategory/post structure if the parent has no content in it, but it simply used to create a primary category is BAD for SEO? I’m setting up a bunch of tutorials but want all sub cats to be under ”Documents” as the parent, then all sub cats will have the posts.

  15. Kagai wa Kamau

    I have 2 queries on SEO impact

    1. if i have one post under 2 categories , is that duplicate content?
    2. can one use many tags in one post and use the same tags on another post?

    Kind Regards

    • WPBeginner Support

      If you have a post under two categories, it would normally be better to look at if you can make the post fit under a single category or reorganize your categories if it is a consistent issue.

      The same tags can be used on different posts.

      Administratör

  16. Alaba

    So if I understand it correctly I can delete any category and redirect those categories to other categories, right?

    • WPBeginner Support

      Yes :)

      Administratör

  17. Alaba

    Hi, what should I do, if I have too many categories that I don’t use? What should I do? Should I delete and redirect them to other categories?

    • WPBeginner Support

      If you are not using categories and have no plans to it would normally be best to create those redirects and remove your unused categories. If you have not added any posts to those categories then there likely isn’t any post that needs to be redirected.

      Administratör

  18. Aditya Mondal

    This post was really helpful to me.Thanks

    • WPBeginner Support

      Glad our guide was helpful :)

      Administratör

  19. yomer gaytano

    HI,
    In a single post, only one category, is that right?

    Because I do use more than one category in each of my post. What would be the problem with this?

    • WPBeginner Support

      As we state in the article, that can cause duplicate content issues.

      Administratör

  20. Shreesha

    Is putting content in multiple categories really bad for the site?

    • WPBeginner Support

      It is not bad in general but if you are only adding a post to categories trying to improve SEO, then it would be bad for your SEO.

      Administratör

  21. Alisha

    But do I HAVE to use categories or can I just use pages? For example, I want to create a dessert website. If I have the button Recipes in my menu and then under that I have Basic recipes for example, can this just be a page and from there I link to different posts? or does it have to be a category from which I link to the different recipe posts?

    • WPBeginner Support

      You would not need the category in the short term but the more recipes you add, the harder it would be to keep all of them in your menu. By adding the posts to a category, you can add the category to your menu for WordPress to create the list of posts for you.

      Administratör

  22. Emmeline

    Hi, I noticed that each category and tag automatically gets it’s own page. Most independent SEO tools/audits tell me these pages are not optimized well because of low word count, etc. – but is this really an issue? From a user perspective, I don’t want random text cluttering up my site just to meet a word count. How do search engines take this into account? Is it fine not to include any tag/category description? Would it be bad to ask search engines not to index my tag pages? I don’t really understand these pages, as it seems like user experience and SEO are at odds on this issue…

    • WPBeginner Support

      Those tools normally see all pages as content pages, you shouldn’t need to worry about the category and tag pages even if the tools don’t read them properly.

      Administratör

  23. Sam Onuegbu

    Hi,

    Your articles and videos have always been of immense help.

    One question…

    You recommended 5 – 10 max categories in your expert opinion.

    Is there also a recommended limit for subcategories or as much as is necessary?

    • WPBeginner Support

      Glad our articles have been helpful, we would recommend limiting subcategories as well unless you are sending out a massive amount of content.

      Administratör

  24. Julie Scott

    I am using WordPress and Yoast. Is it necessary to write a 300 word description for each tag?

    • WPBeginner Support

      It is not necessary and can sometimes be helpful for SEO should a user find the tag in a search result for your site.

      Administratör

  25. Shivam Gumber

    I was making my wordpress notes and your posts are very helpful thank u very much.

    • WPBeginner Support

      You’re welcome, glad you found our article helpful :)

      Administratör

  26. Kuldeep Singh

    Hello,

    Great Post, I have one question.

    Can I Post Same article on 2 Category.

    Thank you.

    • WPBeginner Support

      If you wanted to you certainly could but if that becomes common you may want to think about restructuring your categories.

      Administratör

  27. Rana Abrar

    I have a question. In my word press ”add new post” page there is no category table. What to do?

    • WPBeginner Support

      You would want to check in the screen options in the top-right of the page to ensure that section was not hidden. For the block editor, you would want to ensure you are looking at the document settings

      Administratör

  28. ME VK

    Tag One Word or Two?

    • WPBeginner Support

      That choice would be up to you :)

      Administratör

  29. Hamza Bashir

    I have a question. I have seen some websites that add extra tags. These tags have nothing to do with sorting of posts rather they do keyword stuffing in multiple tags. What is your take on this. Like I have seen such posts with 30 tags and all of them were keywords not tags. Does it help in SEO?

    • WPBeginner Support

      We would only recommend using tags for organization at this time.

      Administratör

  30. Chandramohan

    Hi, above you said that having a single post in multiple categories can lead to duplicate content, but what about tags, assigning multiple tags to a single post, doesn’t that too lead to duplicate contents? Because, tags do have a URL right? Will it effect the SEO?

    • WPBeginner Support

      While tags could run into that issue, it is unlikely to cause an SEO issue with how tags are handled.

      Administratör

  31. Rob Kenyon

    No such thing as ’Document Settings’ on the right hand of my page.
    No sign of Tags or Categories anywhere.

  32. Rupam Sarmah

    I have almost 10 category and almost 50 sub category in my lyrics website ..but I am not using any tag..is there any issue in seo

    • WPBeginner Support

      There should not be.

      Administratör

  33. Richard Martin

    Like!! Great article post.Really thank you!

    • WPBeginner Support

      You’re welcome, glad our guide was helpful :)

      Administratör

  34. Todd

    Is there anything wrong with having sub-sub-categories? I do think this helps my users find posts on my site, and it fits the hierarchy, but maybe they should be tags instead

    • WPBeginner Support

      If it works for how you are organizing content then it is fine unless you think of a better way to organize your content :)

      Administratör

  35. Milad

    can we use this instructions for wocommerce and products as well ?

    • WPBeginner Support

      You can if you would like

      Administratör

  36. hdys

    I have a page on my site (not category or tag) and the topic is ”France tour”, and I also have a category name ”France tour”, is it correct? how can I show google that my landing page is Target and the category is different?

    • WPBeginner Support

      That type of markup would naturally be handled by your SEO plugin if you are using one on your site.

      Administratör

  37. Derek

    I maintain a web site created using WP that has no blogs/posts i.e. its web pages only. Iam concerned that search engines find the site/right page but I do not know if catagories and tags are relevant to the site. Is their any guidance on this?

    • WPBeginner Support

      It would depend on how much content you have but pages don’t have categories by default.

      Administratör

  38. Itivere Desmond

    I love this article, it answed ALL of my questions.

    • WPBeginner Support

      Glad our guide was helpful :)

      Administratör

  39. Anjoo

    Would the same apply for pages?

    • WPBeginner Support

      Pages don’t use categories by default. :)

      Administratör

  40. Adeel Sami

    Always feel great to land on the wisdom shared by you guys! :)

    For me, I always keep ’NoIndex’ the tags and ’Index’ the categories; is it wise to do so?

    I feel like there would be too much of the URLs getting indexed in the search engines coming up with the duplicate/same content.

    Lastly, always the great wokr! :)

    • WPBeginner Support

      That would be personal preference, you should not need to noindex the tags

      Administratör

  41. Robin

    I think you can describe more about index and no indexing of tags and categories. There is lot of confusion about this. Also category and tag sitemaps should be submitted to google search console or not?

  42. DannyNab

    Thank you very much for this insightful article. I’m really blessed reading this piece.

    • WPBeginner Support

      Glad you found our guide helpful :)

      Administratör

  43. Rehoboth

    Pls i created a music and news blog I have about six categories no tag and for my music I use two categories which is trending categories and music categories will I have any issues with that

    • WPBeginner Support

      You should not have an issue with that.

      Administratör

  44. Patrick

    Great article, very helpful. My only question that I have been unable to find an answer to is this: Should I noIndex Category pages?

    While I think a user that landed my category page would find value, I have read that it can hurt SEO as your category page is essentially competing with your posts under that same category.

    • WPBeginner Support

      You would want to reread the section ’Is it okay to assign one post to multiple categories?’ for our opinion on category pages. Normally, there is no need to noindex category pages.

      Administratör

  45. Devin Egger

    GREAT content and SUPER HELPFUL article, but TONS of typos. : D

    • WPBeginner Support

      Thanks for your feedback on our article :)

      Administratör

  46. Marlene Permin

    thank you for the article, i understand the difference a little better now, but i have a question.
    we have a magazine, and use wordpress, to have our site.
    we have over 800 articles in a lot off different topics and a lot off them have different tags on them,
    with means we now have over 600 different tags on our site.
    (i have taken over running the site from a former coworker) and tags where always entered when she added our new articles.
    should i remove the tags from our site or should i leave them?
    i dont want to hurt our Seo.

    • WPBeginner Support

      That would be a personal choice question but you may want to reduce the number of tags you have over time so more posts are under a tag.

      Administratör

  47. Tala

    Thank you for helping me to be a better novice site builder for my small corner of the web! Let me not forget to mention that thought this is my first “comment” here, I have watched your YouTube for years and am grateful for your wealth of knowledge. Happy 2020!

    • WPBeginner Support

      You’re welcome, glad our recommendations were able to help you :)

      Administratör

  48. Martin

    Thanks for this (and the site in general).

    As someone who has worked on many websites, I’m comfortable with the categories/taxonomy, but being new to WordPress the tags are trickier to get my head around.

    I actually think the key point is in your last paragraph – tags can be across multiple categories, while sub-categories should only sit under the one category.

    • WPBeginner Support

      You’re welcome, glad you like our site and our content :)

      Administratör

  49. Jennifer

    THANK YOU! THANK YOU! THANK YOU! I finally understand the difference and how to use them now!

    • WPBeginner Support

      You’re welcome, glad our guide could help :)

      Administratör

  50. Zahid H

    I am starting a WP site on phones. I don’t have any posts and everything is under custom post types or static texts in a page. It’s meant to be a website rather than a blog, are categories and tags still needed? Thabks

    • WPBeginner Support

      While not required, they can be helpful for grouping similar products

      Administratör

  51. Oty Emmanuel

    Thanks very much for this writeup. I have lots of irrelevant tags littered all over my site. Will it hurt my site if i delete them?

    • WPBeginner Support

      You would likely want to create redirects for the deleted tags to prevent 404 pages, other than that you can feel free to remove them.

      Administratör

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.