WordPress.org

Forums

[resolved] Get URL from the_field (3 posts)

  1. madsrh123
    Member
    Posted 1 year ago #

    From this code: <?php echo the_field('transfile'); ?>

    I get this out put:

    3986, , Vis post, , , application/pdf, http://mask.de/jam/wp-content/uploads/2014/02/Vis-post.pdf

    But what I really just want is the url. Can anyone tell me how I can isolate that?

  2. the function the_field() is not a generic WordPress function

    - what plugin or theme are you using?

  3. madsrh123
    Member
    Posted 1 year ago #

    Sorry, I forgot that. Yes it's the Custom Post Type UI plugin. I was merely looking for a way to strip the URL, but it looks like theres docs about the_field() on the plugin site http://www.advancedcustomfields.com/resources/functions/get_field/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags