Skip to content

RSS Block: Add options to preserve source order and reverse items#69649

Open
dhruvikpatel18 wants to merge 1 commit intoWordPress:trunkfrom
dhruvikpatel18:add/rss-block-ordering-options
Open

RSS Block: Add options to preserve source order and reverse items#69649
dhruvikpatel18 wants to merge 1 commit intoWordPress:trunkfrom
dhruvikpatel18:add/rss-block-ordering-options

Conversation

@dhruvikpatel18
Copy link
Copy Markdown
Contributor

@dhruvikpatel18 dhruvikpatel18 commented Mar 21, 2025

Closes #49207

What?

This PR adds two new ordering options to the RSS block:

  • "Preserve source order" toggle that maintains the original order from the feed
  • "Reverse order" toggle that reverses the display order of feed items

Why?

Currently, automatically reorders RSS feed items by date, which makes it difficult to:

  • Maintain the original order specified by the feed source
  • Display future events (like concerts, meetups, etc.) in chronological order

These new options provide users with more control over how feed items are ordered and displayed.

Testing Instructions

  1. Add an RSS block to a post or page
  2. Enter a feed URL
  3. Configure the block with the new options:
    • Toggle "Preserve source order" to maintain the original feed order
    • Toggle "Reverse order" to reverse the display order of items
  4. Verify that the items display in the expected order based on the selected options
  5. Test different combinations of both options to ensure they work together correctly

Screenshots or screencast

RSS.Block.mov

@dhruvikpatel18 dhruvikpatel18 marked this pull request as ready for review March 21, 2025 10:58
@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @danielcharrua.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: danielcharrua.

Co-authored-by: dhruvikpatel18 <dhruvik18@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions
Copy link
Copy Markdown

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Technical Prototype, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core, Gutenberg Plugin.
  • Labels found: .

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@Mamaduka Mamaduka added [Type] Enhancement A suggestion for improvement. [Block] RSS Affects the RSS Block - used to display entries from an RSS/Atom feed labels Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] RSS Affects the RSS Block - used to display entries from an RSS/Atom feed [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RSS Block - Disable order by date or reverse items

2 participants