# Advanced Custom Fields (ACF) by WP Engine

When you use YayMail Pro with [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/) plugin (by WP Engine), you can add a custom field into your order and display that information in emails through YayMail.

First, you need to create a Field Group, and note that, in Settings > Location Rules, select Post Type is equal to **Order** as shown in the image below:

<figure><img src="/files/njfIDiZ5vbnlrYpEOicz" alt=""><figcaption></figcaption></figure>

After placing an order, you can see these fields displayed in the order:

<figure><img src="/files/bY8Qr8Y5Z8RxyJpnVP87" alt=""><figcaption></figcaption></figure>

To add the custom field information to YayMail's template, please select a real order, then select Shortcode > Order Meta and and use those shortcodes accordingly.

<figure><img src="/files/zp7Bophp5yYX0pTHy39o" alt=""><figcaption></figcaption></figure>

Happy customizing!&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yaycommerce.com/yaymail/integrations/advanced-custom-fields-acf-by-wp-engine.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
