WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#41769 new feature request

Custom function to display all values of a custom field (meta_key)

Reported by: mireillesan Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords:
Focuses: Cc:

Description

If possible, add an extra function where we can list all values of a certain custom field (meta_key).

All functions I've found so far is only post id related (e.g get_post_custom_values, etc).

While any developer can build this themselves, I do think other wp users could benefit from it as well if it's simly part of the core.

Thanks.

Change History (3)

#1 @SergeyBiryukov
3 months ago

  • Component changed from General to Options, Meta APIs

#2 @mireillesan
3 months ago

To extend the function, also add a parameter that the results can be limited to posttypes and/or taxonomies.

#3 @johnbillion
3 months ago

  • Type changed from enhancement to feature request
  • Version 4.8.1 deleted
Note: See TracTickets for help on using tickets.