Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add author_name virtual field for use by oik-blocks/fields #35

Open
bobbingwide opened this issue Jul 12, 2021 · 0 comments
Open

Add author_name virtual field for use by oik-blocks/fields #35

bobbingwide opened this issue Jul 12, 2021 · 0 comments
Assignees

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Jul 12, 2021

Requirement

  • Support display of the author_name for a post using a block.

Solution

  • Add a new virtual field author_name
  • Implement the callback function bw_fields_get_author_name() using get_the_author()

Note: It's also possible to use the core/post-author block, with the settings adjusted to not display the Avatar or Bio
and the "Byline" set as required for the label, if needed.

See bobbingwide/oik-blocks#45 and bobbingwide/sb-field-block#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant