Skip to content

Add new Fields to the Fields block: post_date, post_modified and author_name #45

Description

@bobbingwide

In order to support the metadates.html template in FSE themes such as Written I want to replace existing shortcodes with blocks.
I found that the quickest way to implement the solution was to extend the Fields block with a co-requisite improvement to the oik-fields plugin upon which the block is dependent.

See bobbingwide/sb-field-block#5

Requirement

  • Display the post_date, post_modified_date and author_name using a block or blocks.
  • No need for Label as this will be provided in the template/template part.

Solution

  • Extend the oik-block/fields block to add 3 new options to the fieldsOptions
  • Extend oik-fields to support the rendering of the virtual field author_name.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions