Description
This shortcode lets you pull in and show post meta from any post meta field. This supports any post meta field, even those added by other plugins such as ACF.
Shortcode Examples
To show the post title you would use:
[memb_post_meta fields="post_title"]
Shortcode Parameters
capture | Capture the output of the shortcode and route it to a variable for later use. (?) |
|---|---|
date_format | The formatting to use for your date field. You can read more about the date formatting options here. |
fields | The field you want to display from the post meta. Support “custom” fields such as ACF fields. |
htmlattr | Embeds the output of the shortcode into an HTML attribute. For example to put the shortcode output into the href attribute of an <a> tag, you would use htmlattr=href. |
separator | The string to use to separate the list of fields when output. The default separator is a single space. |
after | The phrase to put after dates in the future. |
before | The phrase to put after dates in the past. |
post_id | The ID of the post. Optional and defaults to the post the shortcode is loaded from. |
txtfmt | A comma separated list of text processing functions to be used to post process the contact fields. (?) |
Shortcode Attributes
| Conditional | No |
|---|---|
| Nestable | No |
| Accepts formatting | Yes |
| Capturable | Yes |