alleyinteractive / alleyinteractive/wp-liveblog

Create Gutenberg Block/Shortcode to Display Liveblog Entries

オープン
#8 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement gutenberg php typescript
主要言語
PHP
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。