Wordpress - Own plugin - get all images of the media gallery -


i've written plugin wordpress tinymce editor , want use images have been uploaded media gallery in plugin. how can access uploaded pictures in own plugin? can't find in wordpress docs.

thanks.

i not clear on question. looking method access add media button?

in attempts answer question -> method allows attachments in media section.. displays can manipulate way want to.

reference: http://codex.wordpress.org/template_tags/get_posts

$args = array( 'post_type' => 'attachment', 'numberposts' => -1);  $attachments = get_posts($args); if ($attachments) {     foreach ( $attachments $attachment ) {         echo apply_filters( 'the_title' , $attachment->post_title );         the_attachment_link( $attachment->id , false );     } } 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -