• I know the shortcode to display the upload widget is:

    [wppa type=”upload”][/wppa]

    this displays a clickable link, that opens up the upload options. Is there any way to bypass the link, so it just goes straight to the upload options? Basically, I want this on my page, but don’t want them to have to click the “Upload Photo” link to open up the upload menu.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Use the TEXT editor ( NOT the VISUAL !!!!! ), and make it as follows:

    
    [wppa type="upload"][/wppa]<script>jQuery("#wppa-up--1").trigger('click')</script>
    

    (assuming it is the first wppa on the page, else e.g for the third:

    
    [wppa type="upload"][/wppa]<script>jQuery("#wppa-up--3").trigger('click')</script>
    

    Just inspect the page source to see what the occurrance is, or supply a link and ask me

    Thread Starter pugman76

    (@pugman76)

    Awesome! Works great! Is there any way to do this for the widget, or no? Thanks so much!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Then it is “#wppa-up-0-3” if the occur is 3 and you did not specify any album.
    You have to place the script after the widget(?), or in the header or footer like this:

    
    <script>
    jQuery(document)ready(function(){
    jQuery("#wppa-up-0-3").trigger('click');
    });
    </script>
    

    You can do that in the header.php or footer.php file of the theme. Make sure it is ouside a <?php ?> block, else:

    
    ?>
    <script>
    jQuery(document)ready(function(){
    jQuery("#wppa-up-0-3").trigger('click');
    });
    </script>
    <?php
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upload widget display’ is closed to new replies.