Custom user filed via shortcode

Discussion in 'Customization & add-ons' started by bennyuk1, Sep 26, 2018.

  1. bennyuk1

    bennyuk1 aMember Pro Customer

    Joined:
    Jan 12, 2012
    Messages:
    200
    Using wordpress front end, can I display a custom user field on a page using shortcodes eg
    [am4user var='customfieldname'] ???
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Yes, you can.
  3. bennyuk1

    bennyuk1 aMember Pro Customer

    Joined:
    Jan 12, 2012
    Messages:
    200
    great, so if I have a custom user field SQL called "payment2018" what would the code be?
    eg would it be
    [am4user var='payment2018'] ??
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Yes, it should. I recommend to just try to use this shortcode. Incorrect shortcode will not cause any issue but you will how it works immediately.

Share This Page