WordPress.org

Ready to get started?Download WordPress

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 Functions Shortcode

The “Meta Functions Shortcode” Plugin installs the Shortcode ‘meta’. With it you can access the custom fields of your articles by a shortcode.

The “Meta Functions Shortcode” Plugin installs the Shortcode ‘meta’. With it you can access the custom fields of your articles by a simple shortcode.

Shortcode Syntax: [meta func="" name="" alt=""]

The shortcode has three functions yet:

  1. func=”url” Displays a link using your custom field in “name” as the link target and “alt” as the caption. If “alt” is empty the link target is used as the caption.
  2. func=”plain” Simply displays the custom field in “name” as plain text. If the field is empty it displays the text in “alt”.
  3. func=”img” Inserts the image at the url in your custom field “name” into the article. The “alt” argument is used as the images alternative text attribute.
  4. More functions in later versions of the plugin… Or extend the plugin on your own. See Extending the Plugin (under Other Notes) for details.

Example

[meta func="url" name="download_url" alt="Download here"]

This little code in your article displays a link using your custom field “download_url” as the link target and “Download here” as the caption. If you leave the “alt” argument empty then it uses the link target as the caption.

The resulting html code is:

<a href='{download_url}'>{alt}</a>

Requires: 2.7 or higher
Compatible up to: 2.7.1
Last Updated: 2009-6-4
Downloads: 903

Ratings

0 stars
0 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.