I am not sure I am following. Are your new shortcodes still being inserted with “gallery” instead of “photonic”? Or is it that you have already created many galleries so far and you want to change them to use “photonic”? If it is the latter you desire, that is not possible because there is no way for Photonic to know where to keep “gallery” and wher to use “photonic”
new ones are still being inserted with “gallery”
That is weird. Are your other settings being effective? What happens if you change your lightbox? Does that take effect? Are you using the visual editor or the text editor?
all other settings take their effects.
I tried both, the visual and the text-only editor
but the shortcode gets always inserted with “gallery” :/
Ok. I will take a look as soon as I can get to a computer. Which version of the plugin are you on?
I’m on 1.65
in the privious version I found a workaround by editing one of the plugin’s files to insert “photonic”…
but since the update some days ago, that’s gone, of course…
and now I can’t find the right place to work around this again… 🙂
I see. This feature has actually worked from version 1 of the plugin, so my suspicion is that something in your theme or one of the other plugins (basically whatever is defining its own variant of “gallery”) is highjacking the “Add Media” dialog. I will look into it nonetheless.
When you go to edit or create a page or a post, can you execute the following steps?
- Do a “View Source” in your browser
- Search for Photonic_Admin_JS
- Tell me what you see in that line
<script type=’text/javascript’>
/* <![CDATA[ */
var Photonic_Admin_JS = {“shortcode”:”photonic”,”default_gallery_type”:”flickr”,”plugin_dir”:”http:\/\/www.mk-concert-photos.de\/wp-content\/plugins\/photonic\/”};
/* ]]> */
</script>
OK – it looks like I introduced this bug in version 1.63.
To fix, you will have to do the following:
- Go to the file wp-content/plugins/photonic/admin/add-gallery.php
- At the top of this file you will see this line:
$selected_tab = isset($_GET['photonic-tab']) ? esc_attr($_GET['photonic-tab']) : 'default';
- Before the above line, put in:
global $photonic_alternative_shortcode;
$shortcode = empty($photonic_alternative_shortcode) ? 'gallery' : $photonic_alternative_shortcode;
- Around line 45 you will see this:
var shortcode = "[gallery type='<?php echo $selected_tab; ?>' ";
- Change it to this:
var shortcode = "[<?php echo $shortcode; ?> type='<?php echo $selected_tab; ?>' ";
Let me know if this works, and I will update the code with it.
yep, that did the job for me 🙂
I have put this fix in for version 1.66.