[wp-trac] [WordPress Trac] #44659: Display custom fields
WordPress Trac
noreply at wordpress.org
Fri Jul 27 23:10:35 UTC 2018
#44659: Display custom fields
-----------------------------+-----------------------------
Reporter: iantresman | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
There should be an option to display custom field data without having to
acquire a plugin, rely on a theme supporting it, or hack a theme; surely
this can be achieved in core, programmatically. Options could/should
include (in order of importance):
Global Admin settings to:
1. Enable/disable the display of raw custom field data in a post
2. Option to rewrite outputted field data (add wrapper) that may include
HTML
3. Specify where in a post, the field is output, depending of available
hooks
4. Specify optional regex validation
5. Specify optional data regex replacement on output
6. Specify which options above, are returned via the API to other plugins
7. Specify optional CSS for any classes and IDs added in (2) above.
8. Specify whether a custom field should be a requirement/optional
9. Specify where the custom field box should appear on the post edit page
10. Option to rewrite outputted field data using PHP snippet
Even implementing only items 1-3 would provide a powerful and flexible way
to manage meta data, and provide WP v5 with a significant improvement over
earlier versions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44659>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list