About this topic

  • Posted by zac 1 year ago. There are 4 posts. The latest reply is from byron.
  • This topic is not resolved
  1. Hi.. me again :)

    I am trying to add a custom upload form and a custom gallery layout to my template and I am trying to do this without Thickbox to work with scripts I already set up.

    I am now getting the duplicate gallery error. I know it is because I am calling photosmash in twice.

    This is a problem for me because the upload form needs to be hidden and the gallery needs to remain visible. I know this code is bad but to illustrate my question...

    <?php echo do_shortcode("[photosmash layout='with_story' ]"); ?>
    <div style="display:none">
    <div class="photoSmashSites">
    <?php echo do_shortcode("[photosmash layout='form='user_upload' ]"); ?>
    </div></div>

    How could I wrap the upload form in its own divs using this shortcode method?

    <?php echo do_shortcode("[photosmash layout='with_story' form='user_upload']"); ?>

  2. <?php echo do_shortcode("[photosmash layout='with_story' form='user_upload' no_gallery=true]"); ?>

    And in your other shortcode, add "no_form=true"

    Should fix it.

    Cheers,
    Byron

  3. Thanks again :)

  4. Welcome.
    BB

RSS feed for this topic