How it works...
WordPress' custom fields section is a built-in feature for storing key-value pairs in the wp_postmeta table. The custom fields section is not enabled by default in the new Gutenberg editor. We used the Options menu item on More tools and options menu to enable the custom fields section. Once enabled, the book creation/edit screen will show a new section for creating custom fields under the content editor.
We can either add a value to an existing meta key or use a new meta key for the field. In this case, we clicked the Enter New link and added a new meta key and value for the book. We used the Add Custom field button to add multiple meta keys and values for the book. Once the Update/Publish button is clicked, these meta details ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access