WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Query string to get the list of images from the library (2 posts)

  1. ynnorj
    Member
    Posted 4 years ago #

    I would like to know what is the query that is used to get the list of images from the library.

    I have 'SELECT * FROM wp_posts where post_type = \'attachment\' and post_mime_type LIKE \'%image%\'', but I don't think this the appropriate query string.

    Thanks

  2. ynnorj
    Member
    Posted 4 years ago #

    okay, this just might be it.

Topic Closed

This topic has been closed to new replies.

About this Topic