WordPress.org

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Meta Shortcode

Easily insert meta values, if they exist, into a post or page using a shortcode.

Upload the folder inside the zip to your /wp-content/plugins/ folder or, better, use the plugin pages inside WordPress.

Usage

Insert the shortcode [ metafield ] where you want your info to show up.

You can use the following options.

  • field The meta field to display. This is the only required attribute.
  • sorted If there are multiple values in the meta field, setting this to true will sort them alphabetically prior to output. If false, or left empty, then they will be output in the order entered in WordPress.
  • before Any text or HTML to display before the meta field information. Defaults to blank if there is only one record and <ul> if there are multiple meta records.
  • after Text or HTML to display after the meta field info. Same as before for defaults.
  • empty Text or HTML to display if the meta field isn't found. Defaults to empty which means that nothing is displayed if the meta isn't available.

Requires: 2.5 or higher
Compatible up to: 3.4.2
Last Updated: 2012-11-3
Active Installs: 30+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1