Get Custom Field ValuesbyScott Reilly

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

Overall Rating
WordPress Rating

The plugin has some issues

Sorry, pal! The plugin couldn’t pass all our tests. No hard feelings, right?

Tests done by WP Hive test script Results
  • Minimal impact on memory usage The memory usage of this plugin is less than the average memory usage of other plugins on WordPress.org + 200KB. Check FAQ for more.
    Download Icon
  • Minimal impact on pagespeed The impact of this plugin on PageSpeed is less than the average impact of other plugins on WordPress.org + 1000 milliseconds
    Download Icon
  • No PHP errors, warning, notices WP Hive automated test found no PHP error while activating this plugin on our server
    Download Icon
  • No Javascript issues WP Hive automated test found no JavaScrip error while activating this plugin on our server
    Download Iocn
  • Latest PHP 8.1.12 compatible WP Hive automated test found the plugin fully compatible with the latest version of PHP
    Download Icon
  • Latest WordPress 6.3.1 compatible WP Hive automated test found the plugin fully compatible with the latest version of WordPress
    Download Icon
  • Optimized database footprint The plugin creates less than 50 database tables
    Download Icon
  • No activation errors WP Hive automated test found no activation error while activating this plugin on our server
    Download Icon
  • No resource errors WP Hive automated test found no resource error/s while trying this plugin on our server
    Download Icon
  • Frequently updated The plugin was not updated at least once in the last 90 days
    Download Icon

All the plugins are tested on the same server with exactly same configuration via test script that automatically activates and logs the data WP Hive shows.

  • All the scripts run on a VPS with 8 CPU cores and 8 GB of RAM.
  • The test sites are hosted on Google Cloud VM instances, one site/plugin per instance. The machine type is n1-standard-1. The server is a 8 core CPU with 8GB of RAM.
  • The test sites are hosted on Apache/2 server and they are tested on PHP 8.1.12 & WordPress 6.3.1.
  • The database server is MySQL 10.6.10 and the default PHP memory limit is 512M.
Download Iocn

127K

Total Downloads

Installation Iocn

2K

Active Installation

Calendar Iocn

19 years

On WordPress

Growth Iocn

0.0%

Growth Rate

Support Iocn

1

Support Thread

Rating Iocn

4

Ratings on WordPress

Download Iocn

00

Downloads This Week

Update Iocn

00

Ago Last Updated

Wordpress Icon

Disclosure: When you buy through affiliate links on this site, WP Hive may earn a commission which

we use to keep the site running. Learn more →

About Get Custom Field Values

Description

This plugin provides a powerful widget, shortcode (with shortcode builder tool), and template tags for easily retrieving and displaying custom field values for posts or pages. The power of custom fields gives this plugin the potential to be dozens of plugins all rolled into one. This plugin allows you to harness the power of custom fields/meta data. Use the “Get....

',
'',
'" /> : [photo]', '', '(more...)')); ?>

Shortcode

This plugin provides one shortcode that can be used within the body of a post or page. The shortcode is accompanied by a shortcode builder (see Screenshots) that presents a form for easily creating a shortcode. However, here’s the documentation for the shortcode and its supported attributes.

The name of the shortcode can be changed via the filter ‘c2c_get_custom_field_values_shortcode’ (though making this customization is only recommended for before your first use of the shortcode, since changing to a new name will cause the shortcodes previously defined using the older name to no longer work).

custom_field

The only shortcode provided by this plugin is named custom_field. It is a self-closing tag, meaning that it is not meant to encapsulate text. Except for ‘field’, all attributes are optional, though you’ll likely need to provide a couple to achieve your desired result.

Attributes:

  • field : (string) The name of the custom field key whose value you wish to have displayed.
  • id : (string) The text to use as the ‘id’ attribute for a ‘span’ tag that wraps the output
  • class : (string) The text to use as the ‘class’ attribute for a ‘span’ tag that wraps the output
  • this_post : (boolean) Get the custom field value for the post containing this shortcode? Takes precedence over post_id attribute. Specify 1 (for true) or 0 for false. Default is 1.
  • post_id : (integer) ID of post whose custom field’s value you want to display. Leave blank to search for the custom field in any post. Use 0 to indicate it should only work on the permalink page for a page/post.
  • random : (boolean) Pick random value? Specify 1 (for true) or 0 for false. Default is 0.
  • limit : (integer) The number of custom field items to list. Only applies if ‘post_id’ is blank/unset, ‘this_post’ is 0, and ‘random’ is blank/unset. Use 0 to indicate no limit. Default is 0.
  • before : (string) Text to display before the custom field.
  • after : (string) Text to display after the custom field.
  • none : (string) Text to display if no matching custom field is found (or it has no value). Leave this blank if you don’t want anything to display when no match is found.
  • between : (string) Text to display between custom field items if more than one are being shown. Default is ‘, ‘.
  • before_last : (string) Text to display between the second to last and last custom field items if more than one are being shown.

Examples:

  • Get list of sizes for the current post
    [custom_field field=”size” limit=”0″ between=”, ” this_post=”1″ /]

  • Get random random quote
    [custom_field field=”quote” limit=”1″ random=”1″ /]

  • Get 3 most recent books read
    [custom_field field=”book” limit=”3″ before=”Recently read books: ” /]

Read More >>

Performance

Memory Usage

  • Download Icon Average memory usage is2.04 KB
  • Download Iocn This is less than99%plugins

Page Speed

  • Download Icon Average page loading time is increased by 0.1 s
  • Download Iocn This is faster than99%plugins

Speed Test Benchmark Learn more how we collect the data

  • Before plugin activation
  • After plugin activation

Pages

Benchmark

Change

Average Change
- 0.1s
/(front page)
- 0.18s
/wp-admin/edit-comments.php
- 0.28s
/wp-admin/edit-tags.php?taxonomy=category
- 0.01s
/wp-admin/edit.php
- 0.02s
/wp-admin/index.php
- 0.06s
/wp-admin/media-new.php
- 0.05s
/wp-admin/options-discussion.php
+ 0.02s
/wp-admin/options-writing.php
- 0.11s
/wp-admin/post-new.php
- 0.22s
/wp-admin/post-new.php?post_type=page
+ 0.02s
/wp-admin/upload.php
- 0.19s
MoreLess

Memory Usage Memory Usage Benchmark Learn more how we collect the data

  • Before plugin activation
  • After plugin activation

Pages

Benchmark

Change

Average Change
+ 2.04KB
/ (front page)
+ 2.32KB
/wp-admin/edit-comments.php
+ 0.69KB
/wp-admin/edit-tags.php?taxonomy=category
+ 2.87KB
/wp-admin/edit.php
+ 2.87KB
/wp-admin/index.php
+ 2.87KB
/wp-admin/media-new.php
+ 2.22KB
/wp-admin/options-discussion.php
+ 0.76KB
/wp-admin/options-writing.php
- 0.31KB
/wp-admin/post-new.php
+ 4KB
/wp-admin/post-new.php?post_type=page
+ 3.45KB
/wp-admin/upload.php
+ 0.7KB
MoreLess

Stats Stats

Download Statistics

Plugin Version Usage

Stats More

Database Tables

The plugin has added 0 additional options to your WordPress.

WP-Options

The plugin has added 1 additional options to your WordPress website.

Errors

Frequently Updated

  • The plugin has not been updated in the last 90 days.

Read more how WP Hive determines this data.

Show Off Your Plugin

Download Icon

PHP 8.1.12

Powered by WP Hive

Download Icon

WP 6.3.1

Powered by WP Hive

Download Icon

Logo

PHP 8.1.12 WP 6.3.1

Icon

Love using this plugin?

Why don’t you compare the plugin side by side
with another plugin

Are you an author of this plugin?

Want to skyrocket the popularity of your plugin and reach millions of eager users? Look no further than WP Hive. Gain credibility through in-depth reviews, drive conversions with targeted email marketing, and boost visibility with strategic social promotion and exposure

Supercharge My Plugin
Author Illustration Icon

Be Part of the Conversation with WordPress Enthusiasts

Changelog

Please Allow Us A
Moment Before You Go

Subscribe to our weekly newsletter to get exclusive WordPress toturials, updates and pillar content directly in your inbox.

WP Hive extension for Chrome is now available

Install Hive Logo