• Is there a way to automatically have the document files uploaded post to a page? There is not a security concern as the site is limited to members.

    Also, is there a way to include a drop-down menu that directs which page the attachment should be associated with?

    Any advice on this would be great. Thanks!

    http://ww.wp.xz.cn/plugins/frontend-uploader/

Viewing 1 replies (of 1 total)
  • You could use a snippet like this in your theme to display all attached images:

    <?php
    	$images =& get_children( array (
    		'post_parent' => $post->ID,
    		'post_type' => 'attachment',
    		'post_mime_type' => 'image'
    	));
    
    	if ( empty($images) ) {
    		// no attachments here
    	} else {
    		foreach ( $images as $attachment_id => $attachment ) {
    			echo wp_get_attachment_image( $attachment_id, 'thumbnail' );
    		}
    	}
    ?>
Viewing 1 replies (of 1 total)

The topic ‘Automatically Post Uploaded Attachments to Page’ is closed to new replies.