[memb_post_meta]

This Applies to

Summary

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. (?)

You can pull any fields you want from the post meta, just find the field name and put it into the shortcode as the “fields” variable.

Shortcode Attributes

Conditional: No (?)
Nestable: No (?)
Accepts formatting: Yes (?)
Capturable: Yes (?)

  • Was this Helpful?
  • YesNo
9 ways to add more value to your membership site

[memb_post_meta]

This Applies To

Book a Call

Welcome to Memberium!

We are very excited for you to be part of our family. 

We would love to answer any questions that you have!

Please choose the best time for you to get in a call with us. 

For Technical Support, you can contact us at https://keap.memberium.com/support/ or Email us at support@memberium.com.