Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9291029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:33:15+00:00 2026-06-18T20:33:15+00:00

the_category() function in WordPress generates some invalid markup by creating an anchor tag with

  • 0

the_category() function in WordPress generates some invalid markup by creating an anchor tag with a rel attribute that looks like “category tag” (see the markup for the “Uncategorized” link here).

It seems the problem is category is not a valid value, and also it should be one word.

Most people are deleting it completely, but I was looking at the list of valid values and was wondering if any of them would be appropriate for a link to category page (such as this one)?

In particular tag, section, and subsection caught my eye, but their intended uses are not clear to me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T20:33:16+00:00Added an answer on June 18, 2026 at 8:33 pm

    category and tag are valid values. Some validators are not up to date.

    tag is defined in the HTML5 spec.

    category is listed at http://microformats.org/wiki/existing-rel-values#HTML5_link_type_extensions, which is the normative registry for link type extensions.

    If both link types apply, it’s correct to separate them with whitespace.

    Note: don’t use these link types on any link to the category/tag page; only use it where the linking page is categorized/tagged with the corresponding category/tag. So a page listing all categories shouldn’t use the rel value “category” for the links.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a drop-down menu that are dynamically added through WordPress. It looks like
I have a function that is hooked to WordPress' scheduled cron jobs, that goes
I use a template that generates thumbnails on the content.php page like so: <article
I'm trying to create a website that allows for easy theme adding/manipulation like wordpress
I'm trying to remove/replace the title attribute on the category elements used by WordPress.
i am looking for a function to fetch wordpress category hierarchy from wordpress tables
I set up a pagination function for my wordpress blog. When clicking to the
Alright here is the thing, I have this site that was once wordpress but
I have made a custom loop in WordPress and for some reason, the date
I am creating a Wordpress recent posts widget with a bunch of different functions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.