Block editor + file field

[ad_1]

Field Value block outputs a value of a field without extras.

In the case of wrapping a URL in a link, instead use a Single Item block, which allows setting a template, such as:

<a href="https://projectdmc.org/support/topic/block-editor-file-field/{@file_field_name._src}">
{@file_field_name.post_title}
</a>

…which would output a link to the URL of the original file, using the name of the file as the text for the link.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer