• Resolved hupe13

    (@hupe13)


    I have configured a “Custom Shortcode” for gallery : “photonic“. I enabled “Nested Shortcodes in parameters”. I wrote a shortcode to create the ids list. How to use this shortcode?

    [photonic ids=[my-shortcode to create list of ids] main_size='large' thumb_size='thumbnail' style='square']

    Or should my shortcode create such ids=1,2,3,4 ?

    [photonic [my-shortcode to create ids] main_size='large' thumb_size='thumbnail' style='square']

    Thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    It should be the first option. That being said, this was functionality that I built within the first year of releasing Photonic (14 years back), and I have never had anyone use it. Consequently, I don’t know if it still works as designed, since I have never touched it after the initial implementation.

    Thread Starter hupe13

    (@hupe13)

    I would have been happy and surprised if it worked. I once had a similar question in my forum and couldn’t solve it. Apparently it’s not that easy.

    I had to move my photos from Google to WordPress, so I am creating a plugin now. That’s why I took another look at the Photonic settings and tested this option.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Have you tried including your shortcode in quotes? It should look like this:

    [photonic ids='[my-shortcode to create list of ids]' main_size='large' thumb_size='thumbnail' style='square']

    Basically, the list of ids that Photonic uses is in the format ids='1,2,3,4'.

    Thread Starter hupe13

    (@hupe13)

    I tried everything, nothing works. After the first ']' it fails.

    [gallery ids='[album_ids path=mypath]' link='file' main_size='large' thumb_size='thumbnail' style='square']

    Result: no gallery, but a text

    ‚ link=’file‘ main_size=’large‘ thumb_size=’thumbnail‘ style=’square‘]

    The shortcode album_ids generates a list of ids and is a similar code like this.

    Thread Starter hupe13

    (@hupe13)

    I have now solved it with pre_do_shortcode_tag.

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

The topic ‘nested shortcode’ is closed to new replies.