Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Rinat

    (@rinatkhaziev)

    Something along these lines should do (not tested):

    Put the following code in your functions.php:

    add_filter( 'the_content', 'my_append_fu_form', 20 );
    
    function my_append_fu_form( $content ) {
        // Put the shortcode call as you want it to be as a do_shortcode parameter
        $content .= do_shortcode( '[fu-upload-form title="My Frontend Uploader test"]' );
    }

    i have a problem putting it as i did it . wat i get is empty home page

    Plugin Author Rinat

    (@rinatkhaziev)

    Check your error log for any Fatal errors, looks like a syntax error to me. Also try this snippet

    add_filter( 'the_content', 'my_append_fu_form', 20 );
    
    function my_append_fu_form( $content ) {
        // Put the shortcode call as you want it to be as a do_shortcode parameter
        $content .= do_shortcode( '[fu-upload-form title="My Frontend Uploader test"]' );
        return $content;
    }
    Plugin Author Rinat

    (@rinatkhaziev)

    I just tested it, it displays well but upload is not going to work because javascript is targeting form ID and id should be unique. I made a fix and will release it with the new version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Any way to put the front end uploader on all new post and pages automatically?’ is closed to new replies.