Get Custom Field Values
by Scott Reilly 5 (4 reviews)

Get Custom Field Values

Use widgets, shortcodes, and/or template tags to easily retrieve and display custom field values for posts or pages.

Get Custom Field Values ranks #5,758 among WordPress.org plugins with 1,000+ active installations, is #798 of 8,534 in the Customization category, a 5/5 rating from 4 reviews, and was last updated Oct 10, 2023. Data from WordPress.org, refreshed twice daily — see methodology.

Tested up to WP 6.3 (Current: 7.1)
v4.1 Current Version v4.1
Updated 2 years ago Last Update on 10 Oct, 2023
Refreshed 12 hours ago Last Refreshed on
#798 of 8,534 in Customization Top 10% by installs No update in over a year
View on WordPress.org
Rank
#5,758
-1 this week
Active Installs
1K+
-40.6%
KW Avg Position
N/A
No change
Downloads
132.2K
+2 today
Support Resolved
0%
No change
Rating
100%
Review 5 out of 5
5 (4 reviews)

Next Milestone 2K

Total Progress 68.4%
1K+ 2K+
618
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 316 more installs to reach 2K+

Rank Changes

5,739 5,745 5,751 5,757 5,763 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026
5,739 5,746 5,753 5,760 5,767 01-09-2026 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026
Current #5,758
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 20 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026
0 10 20 01-09-2026 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
4 reviews
Overall 100%
5
4 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Security History

Source: WPVulnerability

4 known vulnerabilities on record · 0 in the last 24 months · checked 1 month ago

  1. Get Custom Field Values [get-custom-field-values] < 4.1 (closed)

    CVE-2023-45604 · Fixed in v4.1

  2. Get Custom Field Values [get-custom-field-values] < 4.1 (closed)

    Fixed in v4.1

  3. Get Custom Field Values [get-custom-field-values] < 4.0.1 (closed)

    CVE-2021-24871 · Fixed in v4.0.1

  4. Get Custom Field Values [get-custom-field-values] < 4.0 (closed)

    CVE-2021-24872 · Fixed in v4.0

TL;DR

AI summary of the plugin's readme

This plugin is for WordPress site owners and theme developers who need to display custom field (meta) values on posts or pages. It solves the problem of retrieving and formatting custom field data through a widget, shortcode, or template tags without writing custom queries.

  • Get Custom Field widget
  • [custom_field] shortcode
  • Shortcode builder tool
  • Six template tags
  • Random custom field retrieval
  • Recent custom field retrieval
  • Custom before/after text output
  • Filter custom field values via hooks

Frequently Asked Questions

Common questions about Get Custom Field Values

Did you echo the return value of the function, e.g. <?php echo c2c_get_custom('mood', 'My mood: '); ?>
Except for c2c_get_custom() (which is only available inside "the loop"), yes, by carefully setting the appropriate settings for the widget.
c2c_get_custom() : not achievable via the widget c2c_get_current_custom() : set the "Post ID" field to 0, leave "Pick random value?" unchecked, and set other values as desired. c2c_get_post_custom() : set the "Post ID" field to the ID of the post you want to reference and set other values as desired. c2c_get_random_custom() : leave "Post ID" blank, check "Pick random value?", and set other values as desired. c2c_get_random_post_custom() : set the "Post ID" field to the ID of the post you want to reference, check "Pick random value?", and set other values as desired. c2c_get_recent_custom() : leave "Post ID" blank, leave "Pick random value?" unchecked, and set other values as desired.
If you use the block editor (aka Gutenberg, which is the default editing experience as of WordPress 5.0), then the shortcode builder is not available yet so this situation would be moot for you. For the classic editor, when on the write or edit admin pages for a page or post, find the "Screen Options" link near the upper right-hand corner of the page. Clicking it slides down a panel of options. In the "Show on screen" section, uncheck the checkbox labeled "Get Custom Field Values - Shortcode". This must be done separately for posts and for pages if you want the shortcode builder disabled for both sections. Programmatically, see the developer documentation for the get_custom_field_values/show_metabox filter for how to completely (or selectively) disable the shortcode builder.
If you use the block editor (aka Gutenberg, which is the default editing experience as of WordPress 5.0), then the shortcode builder is not available yet. If you aren't able to include scripts in your posts (i.e. you don't have the 'unfiltered_html' capability), then the shortcode builder is not available to you. Only those with the editor or administrator role (except on Multisite) or the super administrator role can make use of this plugin's shortcode. For the classic editor, the shortcode builder/wizard is available in the admin when writing or editing a page or post. On the edit/create page, it'll be a sidebar widget (in this context, also known as a metabox) labeled "Get Custom Field Values - Shortcode". If you don't see it there (which may be the case since it is hidden by default), find the "Screen Options" link near the upper righthand corner of the page. Clicking it slides down a panel of options. In the "Show on screen" section, check the checkbox labeled "Get Custom Field Values - Shortcode". This must be done separately for posts and for pages if you want the shortcode builder enabled for both sections.
Yes, any of the boxes on the page when creating/editing posts can be rearranged by dragging and dropping the box name. At the very top of the shortcode builder box the cursor will turn into a four-way array indicating you can click to drag that box. You can move it under the post content box, or higher up on the right side.
Sometimes you have to ensure the text editor has focus. Click within the text editor and make sure the cursor is positioned at the location you want the shortcode to be inserted. Then click the button and the shortcode should get inserted there.
Yes, except that the shortcode builder (a custom tool to facilitate making use of the plugin's shortcode when creating a post) has not been ported over yet. The template tags, widget, and shortcode itself all function properly.
Yes.

Sign In / Register

You need to sign in or register to use this feature.