NO BUG: Paid Memberships Pro Shortcodes not Rendering

Hi @alanj

Thanks for the login details.

Just check the way they store the data.

To output those Payment fields stored in user_meta, just need to add pmpro_ as the prefix.

Example:
bfirstname
{wp_user_meta:pmpro_bfirstname}

ExpirationMonth
{wp_user_meta:pmpro_ExpirationMonth}

CardType
{wp_user_meta:pmpuserfield1}

Custom user field like pmpuserfield1 in your website (no prefix needed)
{wp_user_meta:pmpuserfield1}

The full list inside your pmpfields page.

Actually the easiest way to make those member fields available inline (dynamic tag)
You can just create a simple function like this.

function brx_pmpro_member( $field ) {
  if ( empty( $field ) ) {
    return '';
  }
  ob_start();
  echo do_shortcode( '[pmpro_member field="' . $field .'"]' );
  return ob_get_clean();
}

Now, you can simply use
{echo:brx_pmpro_member('blastname')}
{echo:brx_pmpro_member('membership_billing_limit')}
{echo:brx_pmpro_member('last_name')}

Regards,
Jenn

1 Like