Skip to content

Commit

Permalink
Merge pull request #19 from Automattic/master
Browse files Browse the repository at this point in the history
Alpha release – Dec. 15
  • Loading branch information
dkoo authored Dec 16, 2020
2 parents 6b5dc36 + b6f70e9 commit dd9a636
Show file tree
Hide file tree
Showing 3 changed files with 610 additions and 74 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
# newspack-listings

A new thing.
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![newspack-listings](https://circleci.com/gh/Automattic/newspack-listings/tree/master.svg?style=shield)](https://circleci.com/gh/Automattic/newspack-listings)

Create reusable content as listings and add them to lists wherever core blocks can be used. Create static, curated lists or dynamic, auto-updating lists with optional "load more" functionality. Edit display options to control how the list looks and behaves for readers. Compatible with [AMP](https://amp.dev/).

## Usage

1. Activate this plugin.
2. In the WP admin dashboard, look for Listings.
3. Create and publish listings of any type. Listings can contain any core blocks as content.
4. Optionally tag or categorize your listings to keep them organized, even across different listing types.
5. Once at least one listing is published, add a Curated List block to any post or page.
6. Choose Specific Listings mode to create a static list, or Query mode to create a dynamic list which will automatically update itself when new listings matching the query options are published.
7. Edit list options to control the list's display and behavior.

For more detailed instructions, refer to the [public documentation for Newspack Listings](https://newspack.pub/support/listings/).

## Development

Run `composer update && npm install`.

Run `npm run build`.

Each listing type is a separate custom post type. Configuration is in `includes/newspack-listings-core.php`.

Metadata for listing CPTs is synced from certain blocks in the post content. See configuration in `includes/newspack-listings-core.php` for details.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"require-dev": {
"automattic/vipwpcs": "^2.0",
"wp-coding-standards/wpcs": "^2.2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"brainmaestro/composer-git-hooks": "^2.8"
},
Expand Down
Loading

0 comments on commit dd9a636

Please sign in to comment.