WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#9236 closed enhancement (duplicate)

Improve categories/tags in ATOM feeds

Reported by: andy Owned by:
Priority: normal Milestone:
Component: Feeds Version:
Severity: normal Keywords:
Cc:

Description

Currently we do not differentiate between categories and tags, and we combine them if a post has the same term in both taxonomies.

<category scheme="http://myblog.com" term="Cats" />
<category scheme="http://myblog.com" term="Dogs" />

Attached patch adds support for permastruct-based category schema, uses term->slug for term and term->name for label.

This way, you can construct the category/tag URL from the scheme+term. Here is sample output:

<category scheme="http://myblog.com/category/" term="cats" label="Cats" />
<category scheme="http://myblog.com/category/" term="dogs" label="Dogs" />
<category scheme="http://myblog.com/tag/" term="dogs" label="Dogs" />

Support for custom taxonomies remains a problem for plugins to solve.

Attachments (1)

atom-categories.diff (2.9 KB) - added by andy 4 years ago.

Download all attachments as: .zip

Change History (7)

andy4 years ago

comment:1 FFEMTcJ4 years ago

  • Milestone changed from Unassigned to 2.8

comment:2 FFEMTcJ4 years ago

  • Keywords has-patch needs-testing added

comment:3 peaceablewhale4 years ago

#8828 attempts to fix the same issue.

comment:4 Denis-de-Bernardy4 years ago

  • Keywords needs-patch added; has-patch removed
  • Milestone changed from 2.8 to Future Release

broken patch

comment:5 Denis-de-Bernardy4 years ago

  • Keywords needs-testing removed

comment:6 peaceablewhale4 years ago

  • Keywords needs-patch removed
  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Closing this as the duplicate of #8828.

Note: See TracTickets for help on using tickets.