WordPress.org

Ready to get started?Download WordPress

Forums

Post From Site
Hook for file and post processing (1 post)

  1. halifaxious
    Member
    Posted 1 year ago #

    I'm using Post-from-Site to allow members to post 'Show & Tell' type posts. These are image heavy. Optimally, all the images would display as a gallery. So in pfs-submit.php, line 119 would read:

    $content .= '[gallery]';

    instead of

    $content = str_replace($imgtag, wp_get_attachment_link( $upload[$i], $pfs_options['wp_image_size']), $content);

    Unfortunately, for that to work, the uploaded images must be attached to the post. That means that the post must be created before the images are uploaded so that the $post->ID can be included in the call to wp_insert_attachment() on line 174.

    Is it possible for this to be implemented or should I just fork the project?

    Thanks,
    Jen

    http://wordpress.org/extend/plugins/post-from-site/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic