Plugin Directory

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.

Download Version 3.4

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>
Author: Noby

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

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(0 ratings)

Compatibility

+
=
Not enough data

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

Log in to vote.