Title: Types plug in &#8211; custom fields
Last modified: August 22, 2016

---

# Types plug in – custom fields

 *  [paulw80](https://wordpress.org/support/users/paulw80/)
 * (@paulw80)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/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](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.

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [file](https://wordpress.org/support/topic-tag/file/)

 * 0 replies
 * 1 participant
 * Last reply from: [paulw80](https://wordpress.org/support/users/paulw80/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/types-plug-in-custom-fields/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
