WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#7190 closed defect (bug) (duplicate)

Category and tag archive pages should generate correct link rel for feeds

Reported by: borismann Owned by: hailin
Milestone: Priority: normal
Severity: normal Version: 2.5.1
Component: General Keywords: feeds, rss2_url
Focuses: Cc:

Description

Currently, if you go to a category archive page (eg. /categories/cat-name) the link rel in the header simply outputs the main blog feed. There is no way to tell -- including from view source -- that there are per category / tag feeds available.

This might just be a general enhancement to bloginfo(rss2_url) -- it could auto detect what page it is on and just "do the right thing" -- otherwise you end up having to manually edit the PHP of the header of themes to put logic in for this.

Change History (5)

comment:1 @ryan7 years ago

  • Milestone changed from 2.7 to 2.8

Moving enhancements to 2.8.

comment:2 @borismann7 years ago

  • Type changed from enhancement to defect (bug)

OK, I'm actually going to call this a bug, rather than an enhancement / feature. If there is a feed available for the blog / category / tag / page you are on, the auto discovery link in the header should show it.

The "main feed" can also show (multiple link rel=feed are allowed), but the feed for the page you are on should be first.

comment:3 @hailin6 years ago

  • Owner changed from anonymous to hailin
  • Status changed from new to assigned

I will take a look.

comment:4 @hailin6 years ago

It appears this issue was addressed (at least partially) by
https://core.trac.wordpress.org/ticket/8878

So if you view source:
http://drhailin.wordpress.com/category/uncategorized/

You can see
<link rel="alternate" type="application/rss+xml" title="Dr. Hailin blog &raquo; Uncategorized Category Feed" href="http://drhailin.wordpress.com/category/uncategorized/feed/" />

Let me know if this is not sufficient, or if you have better ideas.

comment:5 @Denis-de-Bernardy6 years ago

  • Milestone 2.8 deleted
  • Resolution set to duplicate
  • Status changed from assigned to closed

closing as dup of #8878, which fixed it.

Note: See TracTickets for help on using tickets.