Fields 0.3.1
July 24, 2010
Changes:
- The shortcode [field] or [fs] (alias of field) can now reference to other posts (cross-post)
Three new attributes for [field] added: slug, post_type and post_status
- slug: a slug to any post of any post type, if specified, the shortcode will look for data from for the post with slug. If no post with slug found, the shortcode returns an empty string.
- post_type: post type of the post to reference to, default value is the same post type of the one the shortcode is in.
- post_status: status of the post, possible values are: publish, pending, draft, future, private, trash.
Example:
[field key='data1' slug='hidden-post' post_type='page' post_status='private']
Leave a comment