From 69778bd3603836f663da23ab119b7c52f98c94cd Mon Sep 17 00:00:00 2001 From: Kevin Fodness <2650828+kevinfodness@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:26:58 -0400 Subject: [PATCH 1/3] WIP: issue-248 From c37fa0b0cbabb2590363156082aad2d0a96aa8f1 Mon Sep 17 00:00:00 2001 From: Kevin Fodness <2650828+kevinfodness@users.noreply.github.com> Date: Wed, 30 Oct 2024 12:01:55 -0400 Subject: [PATCH 2/3] Update README, set minimum PHP version in plugin main file --- README.md | 45 +++++++++++++++++++++++++++++++++++++++------ wp-curate.php | 1 + 2 files changed, 40 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1d1bfd8d..91322468 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,45 @@ [![PHPCS](https://github.com/alleyinteractive/wp-curate/actions/workflows/code-quality.yml/badge.svg)](https://github.com/alleyinteractive/wp-curate/actions/workflows/code-quality.yml) [![Node Tests](https://github.com/alleyinteractive/wp-curate/actions/workflows/node-tests.yml/badge.svg)](https://github.com/alleyinteractive/wp-curate/actions/workflows/node-tests.yml) -Plugin to curate homepages and other landing pages. +A plugin for WordPress to build flexible, curatable layouts for homepages and landing pages. + +WP Curate provides a new query block, which is a more powerful version of the Query Loop block available in WordPress's full site editor that is available on all pages, not just templates edited by the full site editor. Notable improvements include: + +- The ability to include more than one post type in the results +- The ability to curate (pin) posts to any location in the results +- The ability to deduplicate posts across multiple query blocks on the same page + +By using multiple query blocks on the same page, it is possible to create complex layouts featuring curated posts, recent posts, posts in specific categories, and more, all while ensuring that no post is repeated across multiple blocks. + +## Features + +### Curation + +When adding a WP Curate Query block, editors can choose the number of posts to display, and can optionally select specific posts to appear in any of those locations. This is particularly useful if you have a section on the homepage that you want to retain full editorial control over, where you want to ensure that specific posts appear in specific locations. + +### Automatic Backfill + +By specifying post types and taxonomy terms, any WP Curate Query block can automatically display the latest posts that meet those criteria, whether curated posts are part of the block or not. This is useful for creating sections that display the latest posts in a specific category, tag, or custom taxonomy. Posts that are backfilled will be previewed in the editor, but will be grayed out to indicate that they are not curated. As new posts are published that meet the query criteria for backfill, they will automatically be displayed without having to edit the homepage or landing page again. + +### Deduplication + +WP Curate Query blocks can be set to deduplicate posts across multiple blocks on the same page. This ensures that no post is repeated across multiple blocks, even if it meets the criteria for multiple blocks. + +### Flexible Templates + +WP Curate Query blocks use the same Post Template block that the main Query Loop block uses, allowing for a wide range of layout options. This includes the ability to show or hide featured images, authors, excerpts, dates, and more. + +### Parse.ly Support + +WP Curate supports integration with Parse.ly for showing posts based on a Parse.ly popular posts query. This allows you to show popular posts on your homepage or landing page without having to manually curate them. As data is updated in Parse.ly, the posts displayed in the WP Curate Query block will automatically update. + +## Screenshots + +For an up-to-date gallery of screenshots of the plugin in action, see [the screenshots page on the WP Curate wiki](https://github.com/alleyinteractive/wp-curate/wiki/Screenshots). ## Requirements -WP Curate requires PHP 8.1+. It is developed for use on WordPress 6.3+, -though it may also work on earlier versions. +WP Curate requires PHP 8.1+. It is developed for use on WordPress 6.4+. ## Changelog @@ -17,9 +50,9 @@ Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed re ## Credits -This project is actively maintained by [Alley -Interactive](https://github.com/alleyinteractive). Like what you see? [Come work -with us](https://alley.co/careers/). +This project is actively maintained by [Alley](https://github.com/alleyinteractive). + +Like what you see? [Come work with us](https://alley.com/careers/). ## License diff --git a/wp-curate.php b/wp-curate.php index 62227e49..bc290973 100644 --- a/wp-curate.php +++ b/wp-curate.php @@ -7,6 +7,7 @@ * Author: Alley Interactive * Author URI: https://github.com/alleyinteractive/wp-curate * Requires at least: 6.4 + * Requires PHP: 8.1 * Tested up to: 6.4 * * Text Domain: wp-curate From 8bf591a7738fa6c82e88b1303f67428224383085 Mon Sep 17 00:00:00 2001 From: Kevin Fodness <2650828+kevinfodness@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:17:09 -0400 Subject: [PATCH 3/3] Update badge in README for all PR tests --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 91322468..18f1b117 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # WP Curate -[![Testing Suite](https://github.com/alleyinteractive/wp-curate/actions/workflows/unit-test.yml/badge.svg)](https://github.com/alleyinteractive/wp-curate/actions/workflows/unit-test.yml) -[![PHPCS](https://github.com/alleyinteractive/wp-curate/actions/workflows/code-quality.yml/badge.svg)](https://github.com/alleyinteractive/wp-curate/actions/workflows/code-quality.yml) -[![Node Tests](https://github.com/alleyinteractive/wp-curate/actions/workflows/node-tests.yml/badge.svg)](https://github.com/alleyinteractive/wp-curate/actions/workflows/node-tests.yml) +[![All Pull Request Tests](https://github.com/alleyinteractive/wp-curate/actions/workflows/all-pr-tests.yml/badge.svg)](https://github.com/alleyinteractive/wp-curate/actions/workflows/all-pr-tests.yml) A plugin for WordPress to build flexible, curatable layouts for homepages and landing pages.