We created a file field and are adding PDF Brochure documents to this field. We now want to show that PDF Document(s) on the front end but we can't figure out how to do it. We have tried using a button with a dynamic link but it only provides image fields as an option, not the file field we created. We have tried using the Fields and Text, Single Field. None of them provide a link to the file field we created.
Hello, that's odd because a Single Field block should allow you to display on the front-end a link to the file stored in a "file" type custom field. If the field doesn't appear in the Dynamic Sources options, there must be something else going on. In my screenshot here, you can see an example where a File field "book file 1" is available in the Dynamic Sources of a Single Field block. A quick test of this setup shows a link to the file on the front-end of my test site, so it seems to be working in a simple test scenario for me.
- If you create a new custom field while another Block Editor page is open in another browser tab, the new fields will not yet be propagated to the Dynamic Field Sources in the Block Editor. If you refresh the Block Editor page and test again, does the file field appear in Dynamic Sources for the Single Field block?
- Is it possible the wrong field group is selected in your Single Field configurations? Perhaps the file field is in a different field group from the one selected?
- Is the file field in the same post being displayed on the front-end of the site, or is it in a related post type?
- Is the file field set up to allow multiple instances, or is there only one value allowed per post?