Title: Additional shortcode options
Last modified: October 19, 2024

---

# Additional shortcode options

 *  Resolved [back2music](https://wordpress.org/support/users/back2music/)
 * (@back2music)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/)
 * I’d like to know is there a way to tell Photonic WP gallery via shortcode:
   1 –
   Minimum Tile height value for Random Justified and Mosaic Gallery2 – Forse Random
   and Mosaic galleries to load full sized pictures (native WP gallery option size
   =full has no effect in Photonick shortcode)
 * Thank you in advance!

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18083370)
 * For #1, you can specify this for the Justified Grid (_Photonic → Settings → Layouts
   → Random Justified Gallery – Minimum Tile height_). The setting will apply to
   all your galleries that have this layout. It is currently not possible to control
   this for individual galleries.
 * You cannot do #1 for Mosaic galleries, because mosaics behave differently. There
   is, however, a different option for Mosaics, _Photonic → Settings → Layouts →
   Mosaic Layout – Trigger width_, using which you can control when the mosaic layout
   should get triggered. This avoids showing tiny images for narrow layouts.
 * For #2, do you mean you want to show full sized images in the main layout, scaled
   to fit? For that you need the `tile_size` attribute. The Photonic wizard shows
   you this option.
 *  Thread Starter [back2music](https://wordpress.org/support/users/back2music/)
 * (@back2music)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18083398)
 * Thank you for your lightning fast reply! 
   #1 – are you planning to add the Mosaic
   Trigger width and Random Tile height options for individual gallery shortcode?#
   2 – tile_size option works perfectly, thanks!
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18083632)
 * > #1 – are you planning to add the Mosaic Trigger width and Random Tile height
   > options for individual gallery shortcode?
 * It is a possibility, but given that users generally prefer a level of consistency
   for all their galleries, I have left the feature as it is for several years now(
   this feature was introduced in 2016). I might add it in the future, but it isn’t
   high on my to-do list for now.
 *  Thread Starter [back2music](https://wordpress.org/support/users/back2music/)
 * (@back2music)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18084332)
 * I understand, no problem, thanks!
 * Another question, if you don’t mind. I print a gallery directly from a page-id-
   template like so:
    `<?php echo do_shortcode('[gallery category="200"]'); ?>` 
   and everything goes fine, but as soon as I change it to`<?php echo do_shortcode('[
   gallery category="200" style="random"]'); ?>`I get a blank area instead of the
   page content. Interesting that when if I’m moving a mouse over the blank area
   I can see the gallery links in the left bottom corner of the browser. The links
   open in a new page on click, as if the gallery plugin wasn’t there at all. The
   same Photonic code works fine inside the page.Is there a way to print Photonic
   gallery using PHP or may be JS?
 *  Thread Starter [back2music](https://wordpress.org/support/users/back2music/)
 * (@back2music)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18084349)
 * I found the cause of the problem, it was my mistake – I just forgot to load the
   footer in the page-php. Everything work fine now, sorry to bother you with trifles.
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18084697)
 * If your page has widget areas / blocks, you could always add a Photonic widget
   or block for this – you wouldn’t need the custom code.
 *  Thread Starter [back2music](https://wordpress.org/support/users/back2music/)
 * (@back2music)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18085987)
 * Thanks for the tip!
   I just trying to device a simple solution to print galleries
   on a page using dropdown where a user could select and see different attachment
   categories from my media library.For now I coded a dropdown using JS, but still
   have no idea how to use it to change category value in shortcode.I’m not sure
   if I should ask your advice on it in this topic though.
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18086491)
 * I know that some folks try to use accordion plugins for this. I recall a thread
   from at least 4-5 years back when someone commented about using ACF for this,
   but I might be wrong.
 * A rather radical suggestion would be to go to something like Flickr or SmugMug,
   which lets you have albums. You could use Photonic to show a bunch of albums 
   together, on which you can click to show the photos therein.
 *  Thread Starter [back2music](https://wordpress.org/support/users/back2music/)
 * (@back2music)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18090161)
 * I found out that accordions are based on CSS display:block/none and tested the
   feature. A display:none gallery loads as fast as a blank page and only starts
   loading images after selecting “display:block”. So, as far as I can tell, the
   idea works fine and I can use it with my dropdown.
   Thank you again!
 *  Thread Starter [back2music](https://wordpress.org/support/users/back2music/)
 * (@back2music)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18095536)
 * Hello Sayontan!
 * Just in case you interested, i have found a nice way to use dropdown in an attachement
   categories gallery page using URL query strings. It utilises the wordpress function‘
   wp_dropdown_categories’ and a short script right in the gallery page-id.php. 
   Here is the code:
 *     ```wp-block-code
       <?php $linkParam = sanitize_text_field( $_GET['acat'] );  wp_dropdown_categories(array(	'id'				=> 'drop',	'exclude'			=> '2395',    'hierarchical'		=> true,    'order'				=> 'ASC',    'orderby'			=> 'name',    'show_count'		=> 1,    'show_option_none'	=> 'Choose a category',    'taxonomy'			=> 'attachment_category',    'selected'			=>  $linkParam, ) );  ?><script>	let dropdown = document.getElementById('drop');  	let selIndex = new URL (window.location.href).searchParams.get('acat'); 	dropdown.addEventListener("change", onCatChange); function onCatChange() { 	let selIndex = dropdown.options[dropdown.selectedIndex].value;	location.href ="look?acat="+selIndex; } </script><?php echo do_shortcode('[gallery style="random" category="' . $linkParam . '" main_size="full" order="DESC" orderby="ID" tile_size="full" link="file"]');?>
       ```
   
 * It works perfectly with the Media Library Categories plugin. It also works fine
   when the gallery page is opened by an external link with a query string ‘?acat
   =X’ where X is the ID of the category you want the gallery page to show.
   Thank
   you once again for your kind assistance, it really helped me to resolve the problem.
   Have a good day!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Additional shortcode options’ is closed to new replies.

 * ![](https://ps.w.org/photonic/assets/icon.svg?rev=1972449)
 * [Photonic Gallery & Lightbox for Flickr, SmugMug & Others](https://wordpress.org/plugins/photonic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photonic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photonic/)
 * [Active Topics](https://wordpress.org/support/plugin/photonic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photonic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photonic/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [back2music](https://wordpress.org/support/users/back2music/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/additional-shortcode-options/#post-18095536)
 * Status: resolved