> 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/field-types/media/file-field.md).

# Displaying File (attachment) field

&#x20;Advanced Views natively supports the following file types:

1. [WordPress](/advanced-views/fields/wordpress-fields.md): attachment&#x20;
2. [ACF](/advanced-views/fields/meta-plugins/advanced-custom-fields.md): any File field
3. [MetaBox](/advanced-views/fields/meta-plugins/meta-box-fields.md): any File, FileAdvanced, FileInput, FileUpload field
4. [Pods](/advanced-views/fields/meta-plugins/pods-fields.md): any File field

## 1. How to display a File field

1. [Create a new *Layout*](/advanced-views/getting-started/first-layout.md)
2. Add any File field
3. Save the *Layout*, copy its [embedding shortcode](/advanced-views/layouts/embedding-shortcode.md)
4. Embed *Layout*: paste the shortcode inside the target place

Advanced Views automatically creates HTML markup and loads file metadata (like name and url) into the template.&#x20;

You can [customize the *Layout* template](/advanced-views/layouts/code-fields/custom-template.md) to use the [File render options](/advanced-views/field-types/media/file-field/render-options.md).

{% hint style="info" %}
The **Link Label** is useful when you want to have more consistency in the output, fill out the Link Label to replace the link text of your file. By default the File name from the file attachment is used.
{% endhint %}

## 2. Displaying file details

By default, the File field is displayed as a link, which suits most use cases. However, in some instances, you might want to display detailed information about the file.&#x20;

For example, if you've created a file field where a video has been selected, you may want to display it as a video player. All WordPress media items, including images and files (videos, PDFs), belong to the 'attachment' post type. This means you can use any standard post fields.

Here’s how to do it:

1. Create a ‘File Details’ *Layout*:\
   This *Layout* will be responsible for displaying file details. In the Fields tab, assign the file fields you want to display, then publish the *Layout.*&#x20;
2. Create a page *Layout*: \
   Create a page *Layout.* In the Fields ta&#x62;*,* add the target File field, and assign 'File Details' as a Field Layout, then publish the page Layout
3. Embed page Layout: copy and paste the page [Layout shortcode](/advanced-views/layouts/embedding-shortcode.md) inside the target place

That's it!  Now you can [customize the *Layout* template](/advanced-views/layouts/code-fields/custom-template.md) to use the[ File render options](/advanced-views/field-types/media/file-field/render-options.md).
