Types plug in – custom fields
-
Hi, im using the wordpress types plug-in to output some custom fields.
One of the custom fields is a file attachment. (idea is that the client will attach a PDF that will then turn into a download link, with the file title on the front end).
The php I am using to output the custom field is:
<?php echo(types_render_field( “villa-pdf”, array( ‘raw’ => false) )); ?>
This outputs the full url:http://www.orlandosupremevillas.co.uk/wp-content/uploads/2014/09/villa-one.pdf. I would like it to only output the file title, as a download link. Im stumped.. can anyone help?
Thanks for any help.
The topic ‘Types plug in – custom fields’ is closed to new replies.