• Resolved JCLondon

    (@jclondon)


    Hi Markus, is it possible to add a custom field (created with ACF) in the Value field?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Markus Wiesenhofer

    (@markusfroehlich)

    Hello yes of course,
    all custom acf fields are stored in the database with her field name.

    Write the name (key) from the ACF field in the label format: %acf_field_name%.

    Best regards
    Markus

    Thread Starter JCLondon

    (@jclondon)

    Hi Markus, thanks for your reply. I meant to have the custom field returned in the Value field, not in the Label format.

    I managed to add the custom field as a value and it all works fine. I created a new case in modules/module.php line 129

    case 'brochure':
      $field_post_data['values'][] = "\r\n\r\n" . $post->post_title . "\r\n" . get_field('brochure', $post->ID);
      break;

    and also added the relevant input under Value field (modules/module.php around line 353).

    Everything works fine, I’m just having issues with the way the values are returned in the email. I need to add some line breaks and as you can see I have tried but only the ones after the post title work while the line breaks at the beginning don’t work.

    I would need something like

    Title
    Link brochure

    Title
    Link brochure

    I’m really close to achieving it, I hope you will be able to help!

    Thanks for the amazing plugin

    Plugin Author Markus Wiesenhofer

    (@markusfroehlich)

    Hello i will find a way to add this feature in the next Version.

    Best regards
    Markus

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Field in value’ is closed to new replies.