WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Get URL from the_field (3 posts)

  1. madsrh123
    Member
    Posted 1 month 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. alchymyth
    The Sweeper & Moderator
    Posted 1 month ago #

    the function the_field() is not a generic WordPress function

    - what plugin or theme are you using?

  3. madsrh123
    Member
    Posted 1 month 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/

Reply

You must log in to post.

About this Topic

Tags