The “Meta Functions Shortcode” Plugin installs the Shortcode ‘meta’. With it you can access the custom fields of your articles by a shortcode.
| Author: | Matthias Amacher (profile at wordpress.org) |
| WordPress version required: | 2.7 |
| WordPress version tested: | 2.7.1 |
| Plugin version: | 3.4 |
| Added to WordPress repository: | 23-04-2009 |
| Last updated: | 04-06-2009
Warning! This plugin has not 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.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | http://wordpress.org/extend/plugins/meta-func... |
| Total downloads: | 2 142 |
| Active installs: | 10+ |
![]() Click to start download |
|
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:
- 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.
- func=”plain” Simply displays the custom field in “name” as plain text. If the field is empty it displays the text in “alt”.
- 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.
- 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>
