• Resolved rosieharv

    (@rosieharv)


    Hi, we have an email template that looks like this.

    ——–
    Hello and Welcome to the Club. **username** **soc_postcode**

    When you receive your welcome pack and membership number you will be able to register as an SOC member on the website and get access to the site’s MEMBERS ONLY Pages under your own membership details.  If you joined on-line we will have given you a temporary username/password and once you’ve registered with your permanent membership number you can stop using the temporary one.

    ———

    BUT the soc_postcode field just displays **soc_postcode**.

    The documentation says :You can also use any WordPress user standard field or an own metadata, if you have used it in your CSV. For example, if you have a first_name column, you could use **first_name** or any other meta_data like **my_custom_meta**

    Can you tell me the syntax I need to use please. If I need to use meta data what is the syntax then. Thanks. Rosie

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @rosieharv,

    As I told you in the other thread, this is not working because ACF does not create a meta like soc_postcode in the database, it creates another meta and this is the one you have to find and use it there.

    You can have a look in your usermeta table to check this.

    Sorry but this is not a problem from this plugin, if ACF creates the metas with the same name as the field, it would work (without making any research).

    • This reply was modified 4 years, 8 months ago by Javier Carazo.
    Thread Starter rosieharv

    (@rosieharv)

    Actually Javier you are wrong. The soc_postcode is indeed in the meta user table, created from your import functionality absolutely fine.

    this is not the issue – the issue is much more simple and perhaps my question was not clear enough as we were trying to use the ‘send test mail’ option in mail options. However you cannot use this button to test if you want to test your meta data. I found this by looking at the code to confirm that the ‘send test email’ code doesn’t look at the usermeta table, only wp_user data (ie from the normal user table). It works fine when you do an actual test import.

    Perhaps a suggestion is to mention this in the tab? something like ‘please note that when using the ‘send test email’ button, you cannot test your meta data’.

    Thanks anyway for your response.
    Rosie

    Plugin Author Javier Carazo

    (@carazo)

    Thanks for clarify.

    Ah ok. I thought it was not necessary because I thought everyone could understand that every tag there (not only the metas) cannot be rendered because there is no data to parse.

    Anyway, OK I will add a note to prevent this misunderstanding and I thank you because your appreaciation.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Syntax for including ACF fields in emails’ is closed to new replies.