Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter tdoccc

    (@tdoccc)

    Anyone? halp.

    Thread Starter tdoccc

    (@tdoccc)

    I’m trying to use this

    add_action( 'fu_after_upload', 'my_fu_after_upload', 10, 3 );
    function my_fu_after_upload( $attachment_ids, $success, $post_id ) {
    
    	global $clickable_links;
    	$count = count($attachment_ids);
    
    	for($i=0; $i<=$count; $i++) {
    		$fu_download_links[$i] = wp_get_attachment_url($attachment_ids[$i]);
    		$clickable_links[$i] = '<p><a href="' . $fu_download_links[$i] . '">' . $fu_download_links[$i] . '</a></p>';
    		echo $clickable_links[$i];
    	}
    }

    I don’t understand though, even echo ‘whatever’ in this shortcode does nothing. I don’t understand how it works? How do I generate the url in the upload response?

    Plugin Author Rinat

    (@rinatkhaziev)

    It won’t work that way, because fu_after_upload fires before actual redirect to the page that displays notices.

    Thread Starter tdoccc

    (@tdoccc)

    I generate the response notice on the same page as the frontend uploader. What about in handling response notices? I can’t seem to be able to pass the $_POST data to that function (all I require is either post_id or post_title)… I know this would mean editing the plugin but I really want the user to see a hyperlink to their uploaded content.

    I have a similar question. After you submit the form, how can you be redirected to the blog page (with the list of all the posts)?

    Best regards!

    My question is similar to tsmulugeta. Once someone uploads a document, and it is approved, I see it in the media library. Is there a way to get a list of what media is in the library itself (for the users interfacing from the front end)?
    Thanks,
    Clay

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Link to post after submission?’ is closed to new replies.