cpt_field

[ cpt_field ]
Value for custom field. Value can be enveloped in the HTML tag. If the value is image link, it can be displayed as an image.

  • code: custom field name (required).
  • post: ID for the post to get field for, if left as 0, current post will be used.
  • image: if field is image this attribute is used, value can be ‘url’ or ‘img’.
  • tag: tag to envelop the custom field value.
  • class: class to set if the tag is used.
  • style: style to set if the tag is used.
  • term: only for custom field for terms: name, id, slug or link.
  • raw: only for rich editor field: true to not apply content filters.
  • target: only for link field, add value for target attribute: _blank, _top and other frame related values.
  • rel: only for link field, add value for REL attribute

Example:

[ cpt_field code=”movie_year” tag=”span” class=”field-value” ]

Comments

Leave a Reply