WordPress / WordPress/Learn

Modify workshop archive ordering

Open
#260 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Enhancement
Dominant language
PHP
Stars
333
Forks
127
Avg merge
1d 7h
Merged PRs (30d)
11

Description

As per this comment: https://github.com/WordPress/learn/issues/252#issuecomment-952415901

The workshop archive ordering needs to be modified in the following ways:

  1. Workshops that are tagged with the current version of WordPress in the wporg_wp_version taxonomy show up first but are randomised within that. The current version of WordPress can be obtained through the WordPress.org API.
  2. Workshops with the Faculty tag in the wporg_workshop_type taxonomy show up next in random order.
  3. Workshops with the Community tag in the wporg_workshop_type taxonomy show up next in random order.

Randomisation needs to be consistent when using pagination.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked comment and the workshop archive implementation, then trace how the WordPress.org API provides the current WordPress version and how the wporg_wp_version and wporg_workshop_type taxonomies are queried. Done means the three ordering groups are randomised as specified, with consistent ordering across pagination.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.