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.
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:
- What's the Difference Between Categories and Tags?
- How Can You Add Categories and Tags in WordPress?
- How Many WordPress Categories Should You Have?
- Using Categories in Your Post URLs
- Can I Assign One Post to Multiple Categories?
- Is There a Limit to How Many Tags a Post Can Have?
- Categories vs Tags: What's Better for SEO?
- Can You Control How Categories and Tags Look in Search Results?
- Expert Guides on Categorizing WordPress Content
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”.
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.
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.
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.
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”.
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.
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:
- Så här addar du kategorier och tags för pages i WordPress
- Så här addar du kategorier och tags till mediabiblioteket i WordPress
- Hur man slår samman och massredigerar kategorier och tags i WordPress
- Så här addar du kategorier och underkategorier i WordPress
- Hur man visar / döljer kategorier i WordPress (Ultimate Guide)
- Så här byter du namn på kategorier i WordPress på rätt sätt (Beginner’s Guide)
- Så här ändrar, flyttar och borttar du WordPress-kategorier på rätt sätt
- Hur du automatiskt taggar dina WordPress-poster och sparar tid
- Så här visar du de mest populära taggarna i WordPress
- Hur man ställer in maximalt antal taggar för WordPress Posts
- Så här skapar du customize taxonomies i WordPress
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.
Syed Balkhi says
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!
ME VK says
Tag One Word or Two?
WPBeginner Support says
That choice would be up to you
Administratör
Hamza Bashir says
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 says
We would only recommend using tags for organization at this time.
Administratör
Chandramohan says
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 says
While tags could run into that issue, it is unlikely to cause an SEO issue with how tags are handled.
Administratör
Rob Kenyon says
No such thing as ’Document Settings’ on the right hand of my page.
No sign of Tags or Categories anywhere.
WPBeginner Support says
If you are using a page builder or on WordPress.com your interface may look different, if you are on WordPress.com we cover the difference between that and WordPress.org in our article below:
https://www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/
Administratör
Rupam Sarmah says
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 says
There should not be.
Administratör
Richard Martin says
Like!! Great article post.Really thank you!
WPBeginner Support says
You’re welcome, glad our guide was helpful
Administratör
Todd says
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 says
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
Milad says
can we use this instructions for wocommerce and products as well ?
WPBeginner Support says
You can if you would like
Administratör
hdys says
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 says
That type of markup would naturally be handled by your SEO plugin if you are using one on your site.
Administratör
Derek says
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 says
It would depend on how much content you have but pages don’t have categories by default.
Administratör
Itivere Desmond says
I love this article, it answed ALL of my questions.
WPBeginner Support says
Glad our guide was helpful
Administratör
Anjoo says
Would the same apply for pages?
WPBeginner Support says
Pages don’t use categories by default.
Administratör
Adeel Sami says
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 says
That would be personal preference, you should not need to noindex the tags
Administratör
Robin says
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?
WPBeginner Support says
Thank you for your request, for the Search Console, you would want to take a look at our article below:
https://www.wpbeginner.com/beginners-guide/how-to-add-your-wordpress-site-to-google-webmaster-tools/
Administratör
DannyNab says
Thank you very much for this insightful article. I’m really blessed reading this piece.
WPBeginner Support says
Glad you found our guide helpful
Administratör
Rehoboth says
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 says
You should not have an issue with that.
Administratör
Patrick says
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 says
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
Devin Egger says
GREAT content and SUPER HELPFUL article, but TONS of typos. : D
WPBeginner Support says
Thanks for your feedback on our article
Administratör
Marlene Permin says
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 says
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
Tala says
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 says
You’re welcome, glad our recommendations were able to help you
Administratör
Martin says
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 says
You’re welcome, glad you like our site and our content
Administratör
Jennifer says
THANK YOU! THANK YOU! THANK YOU! I finally understand the difference and how to use them now!
WPBeginner Support says
You’re welcome, glad our guide could help
Administratör
Zahid H says
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 says
While not required, they can be helpful for grouping similar products
Administratör
Oty Emmanuel says
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 says
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
James says
Would you recommend renaming the tag base from ”tag” in the permalinks section?
I’ve seen another site that has changed theirs to ”all-about” and I wondered whether there were any SEO reasons for doing this.
WPBeginner Support says
You would need to redirect any post using the old link but that shouldn’t have a major SEO impact either way.
Administratör
TJennings says
Great article, and I sent a link to my client because it’s so good, but could use a lot of proofreading. A lot.
WPBeginner Support says
Thank you for your feedback
Administratör
John J says
This is a great article and helped me understand the categories and tags but how do they relate with image galleries if you have hundreds of images?
WPBeginner Support says
Unless the images are in multiple posts or you’re using a plugin that adds them to images, they aren’t added by default to images
Administratör
Jim Gersetich says
Excellent article! It’s very helpful. I’ll be implementing on my blog site immediately.
Thank you!
WPBeginner Support says
Glad you like our recommendations
Administratör
Surojit Mukherjee says
Great explanation sir. ..I had little bit of confusion about categories & tags, but after reading your article it is clear to me. ..
Thanks a lot
WPBeginner Support says
Glad our article could clear up your confusion
Administratör
paula says
I have a WP video site where members can post YouTube links to their videos. I have several categories for the video posts.
I want to have a ”featured” type of display on the home page where I, as the admin, select videos to feature, or post my own videos there, but I want this to be off-limits to users. Otherwise, I think everybody might be labeling their video as ”featured.”
Can any of this be controlled by categories or tags? Is there a way to have a category or tag that only the admin can apply?
Any hints are appreciated.
WPBeginner Support says
Rather than the category, you could use the built-in sticky post option: https://www.wpbeginner.com/beginners-guide/how-to-make-sticky-posts-in-wordpress/
Administratör
REGS says
Very helpful this blog. I learned many new strategies, especially good use of categories in WordPress. You did great work by sharing it.
WPBeginner Support says
Thank you
Administratör
Pamela Torres says
I have a WP blog. All of my postings are falling under my Home Page. Nothing is showing up under any of the categories I have across the top. I need to know how to move those posting from Home, to the category that they need to be under.
Please help me. I worked on it until 3 a.m. and it was frustrating. Also I need to know how to set up a ”leave a reply” after each of my posts.
WPBeginner Support says
For the menu items, rather than pages in your menu you would want to ensure you placed the categories themselves in your menu and your posts are set as part of those categories.
To allow comments you would want to ensure you’re allowing new comments under Settings>Discussion for new posts and your old posts should have a discussion settings area to enable comments
Administratör
rachana bhapa says
found this information quite useful. I’m starting out new with my travel blog and I found so many answers and information related to my queries on your site. keep up with the great work. !!!
WPBeginner Support says
Glad our site’s been helpful
Administratör
R. Murillo says
Thank you for sharing your expertise with us. It has been very helpful.
As they say, knowledge is power, how true. Simple things seem to be very complicated when they are not.
I am still struggling to get my word press blog to work.
r. murillo
WPBeginner Support says
Glad our article could help, feel free to reach out to us should you continue to struggle with your site
Administratör
Avantela says
Wow, thanks for the insight. It’s easy to understand. It helps me solving my problem with my new blog.
WPBeginner Support says
Glad our article could help you
Administratör
Abdul says
This is Great Piece of work
WPBeginner Support says
Glad our article could be helpful
Administratör
Rashmi says
Thanks for posting this. Very useful information for wordpress users.
WPBeginner Support says
Glad you found our tutorial helpful
Administratör
Susan Soltrelly says
Really helpful! I was in the same boat, wondering whether I still needed to tag posts. It seems a bit archaic.
However, I do mark some posts under more than one category. I feel like if I had to narrow my categories further I’d have 50 of them! I do know that at least I find them helpful when I’m looking up old posts at our blog.
Ashwani says
Do you recommend ideal no. Would be in between 5-10 for tags, plz answer
kym says
Hi you mentioned: ”Yes, you will have to go back and edit your older posts. If your URL structure is /category/postname/, then you have make sure you are using the Redirection plugin. It automatically redirects your modified posts to their new URL, so you can keep all the search engine rankings” But elsewhere in another blog, https://www.wpbeginner.com/wp-tutorials/seo-friendly-url-structure-for-wordpress/ it said that we will lose search engine ranking if we change permalink structure.
Why is there a contradiction?
WPBeginner Support says
Hi Kym,
Yes, you will lose search rankings if the old URL starts showing 404 error or duplicate content. That’s why you need to properly redirect URLs so that search engines can fine the content on new location and start showing it in the search results.
Administratör
Emma says
On the subject of assigning multiple categories to a post…I see what you mean about this generally being a sign of a much-needed category reorganization, but I would like to point out an exception. My blog is about science—it’s open to every field, though I’ve just started out with 12—and each science field is a category. However, science fields are often multidisciplinary. For example, I might write an Astronomy post on star stuff, but that also fits into Spectroscopy. There are also Astronomy and Chemistry crossovers. I think that ultimately, it’s up to the blogger how they want to organize their categories…but these are all good points
I have a question…will it affect my search rankings at all if I use the ”science” tag for all posts? If so, positively or negatively?
WPBeginner Support says
Hi Emma,
We agree. As for the ’science’ tag. If all your posts are tagged science then basically the science tag pages will be duplicate of your main archives with essentially the same content. This could effect your SEO negatively.
Administratör
J. Adams says
I would like to ask that if you assign a post to a category and a tag at the same time, won’t that result in duplicates and affect your search engine ranking?
Marta says
As far as I know, it is important that I give every category and tag not only meta tags but also a description. This can be also a longer text. I planned to do so and optimize those urls for seo too (it was suggested by a seo tool) but these descriptions are usually not visible for my readers. But I thought they would be worth reading and could be a nice introduction into that cercain category. Should I make the effort in the first place and if I do so, how can I make these descriptions visible, readable for my users?
WPBeginner Support says
Hey Marta,
Please see our guide on how to display category descriptions in WordPress.
Administratör
Annavaram says
Great explanation! I find this post highly useful, clearing up the confusion I have had about the categories and tags for a long time. I recommend that the net wonderers spend some time and read it with a peace of mind if they were ever to know what ”categories” and ”tags” really are.
Raheem says
Hi,
For a site that has mobile phone, automobiles, banking, technology as parent categories; review, tutorials, interviews and news are being handled by tags. But the ‘news’ is always in abundant, i mean they are in hundreds.
Should i make it (news) a separate parent category and select two parent categories for any post that is news as well as belong to any of the other parent categories or i should keep handling it through tag? and should on the basis of news tag, it can be submitted to google news?
Sarah says
If we move categories into subcategories, does that break links/cause a Google penalty?
Thanks
Kay says
I also have this question. Please advise. Thanks!
Editorial Staff says
If you don’t setup proper SEO redirects, then yes it can have a negative SEO impact for those pages.
Administratör
Rakhee says
I am in the process of creating a website and am confused whether to create categories in my menu or pages. I understand that pages are for static information such as About me, contact me etc. If I wanted to create a menu bar containing a nutrition, treatments folder etc would you suggest using pages or categories? Thanks!!
WPBeginner Support says
Hi Rakhee,
If you are planning on continuing to add new content into those topics, then categories are the way to go.
Administratör
Debra says
Thanks for the free education. I really appreciate it. I’ll put it to use in my blogs.
Luz K Lee says
This is an excellent tutorial on categories, sub-categories, and tags. You have given me a better understanding on how best to structure my site. Thank you.
Doug Robertson says
Thanks for the great information.
I need to create an index that links a series of posts to one master post. Basicly, a master post and follow on update posts.
Is there a way to create a Tag I can use to organize and link these that can’t be seen by users in the Tag cloud and such?
Any suggestions would be helpful.