WordPress.org

Ready to get started?Download WordPress

Forums

Get Filename of Attachment Instead of URL (2 posts)

  1. pealo86
    Member
    Posted 2 years ago #

    Is there any way I can use a function similar to this:
    http://codex.wordpress.org/Function_Reference/get_attached_file

    But to retried ONLY the filename? I can see the file in question in my database:

    meta_id: 63
    post_id: 33
    meta_key: _wp_attached_file
    meta_value: iStock.mp4

    But I'm not sure what to do with it. Do I need to write some kind of custom query?

  2. egado
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic