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
In order to support the
metadates.htmltemplate 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
post_date,post_modified_dateandauthor_nameusing a block or blocks.Solution
oik-block/fieldsblock to add 3 new options to thefieldsOptionsauthor_name.