> For the complete documentation index, see [llms.txt](https://wplake.gitbook.io/advanced-views/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wplake.gitbook.io/advanced-views/templates/customizing-the-template.md).

# Customizing the Template

The Default Template can be copied into the **Custom Template** field, allowing you to edit and have complete control over the markup.

## 1. How to use it

Go to **Edit** your *Layout.*

Switch to the *Template* tab.

**Select** the *Default Template* code and **copy it**.

Paste the code in the *Custom Template* field.

Edit the markup as needed.

Click on **Update** to save your *Layout*.

{% hint style="warning" %}
If you have added new fields in your *Layout*, remember to click **Update** to ensure that you have the latest template before editing.
{% endhint %}

## 2. How to add extra fields

If you need to add extra fields from a vendor that is not supported by Advanced Views [out-of-the-box](/advanced-views/getting-started/supported-data-vendors.md), you can add the [get\_post\_meta()](https://developer.wordpress.org/reference/functions/get_post_meta/) WordPress call into the template to display any meta value.

For vanilla PHP:

```php
<?= get_post_meta($_layout["object_id"], 'YOUR_FIELD_NAME'); ?>
```

For Blade:

```blade
{{ get_post_meta($_layout["object_id"], 'YOUR_FIELD_NAME') }}
```

For Twig, you have to load the field via the [PHP Controller](/advanced-views/display-content/php-controller.md#custom-variables-for-extra-data).

{% hint style="info" %}
Ensure to replace the field name with yours - you can consult your data vendor's docs. Alternatively, you can use any PHP function that your data vendor provides to fetch values.
{% endhint %}
