alleyinteractive / alleyinteractive/wp-liveblog

Create Gutenberg Block/Shortcode to Display Liveblog Entries

Offen
#8 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement gutenberg php typescript
Vorherrschende Sprache
PHP
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Description

- Create a Gutenberg block to display liveblog entries that are associated with the current Liveblog post.
- The block should only appear in the inserter on Liveblog posts (not Liveblog Entries or any other post type).
- Do not create an admin view for the block - it should simply say that liveblog entries will appear in that location.
- On the front-end, display liveblog entries associated with the current post (where the `wp_liveblog_parent` postmeta key points at the current Liveblog post ID) in reverse chronological order.
- For now, do not worry about hierarchical posts, even though the post type supports them (we will add support for nested posts in the future).
- There should be a default template of some sort which includes the post title of the liveblog entry (which should be an h2), the post content, the author, including the author's avatar, and the date/time the entry was published.
- The default template should be able to be overridden by users in some way, maybe via a template or partial in the theme. It would be ideal if whatever this method is was compatible with full-site editing, although a filter would also be acceptable as an MVP.
- Add a shortcode that invokes the block for users that do not have the block editor enabled. The shortcode should be a thin wrapper around the block. The shortcode should be called `liveblog_entries`.

### Use Case

As a user, I want to be able to see the latest liveblog entries when loading a liveblog.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.