You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the genesis-a2z theme we display the Published date ( post_date ) and Last updated date ( post_modified ) at the bottom of the content.
This is followed by an (Edit) link, which enables authorised users to edit the content.
Published: November 6, 2020 | Last updated: November 6, 2020 (Edit)
Requirement
To display this information in a template area between the content and the information
Date values to be formatted using the site settings
Labels either to be text in the template or translatable strings in the theme
(Edit) link to only be displayed to authorised users
Proposed solution
implement a new template part called metadates.
eg
update style.css / experimental-theme.json as required
Since:
we are dependent upon oik and oik-fields to display the post meta data in the Information box
we use oik-blocks to display block icons
in the short term solution for the date fields can be implemented as shortcodes such as [bw_field] or [bw_fields]
which could then be implemented in the oik-blocks/fields block.
The (Edit) link should be a separate shortcode ( bw_edit ) / block ( post-edit )
In the longer term I'd expect these to be implemented as core/post-date, core/post-modified and core/post-edit blocks.
I believe that some of these requirements have already been raised by members of the theme-experiments projects.
The text was updated successfully, but these errors were encountered:
In the genesis-a2z theme we display the Published date (
post_date
) and Last updated date (post_modified
) at the bottom of the content.This is followed by an (Edit) link, which enables authorised users to edit the content.
Requirement
Proposed solution
metadates
.eg
Since:
in the short term solution for the date fields can be implemented as shortcodes such as
[bw_field]
or[bw_fields]
which could then be implemented in the oik-blocks/fields block.
The (Edit) link should be a separate shortcode ( bw_edit ) / block ( post-edit )
In the longer term I'd expect these to be implemented as
core/post-date
,core/post-modified
andcore/post-edit
blocks.I believe that some of these requirements have already been raised by members of the theme-experiments projects.
The text was updated successfully, but these errors were encountered: