create selectable custom gallery shortcode (5 posts)

  1. gerald@WPcustoms
    Posted 4 years ago #


    I build a custom gallery shortcode function::

    remove_shortcode('gallery', 'gallery_shortcode');
    add_shortcode('gallery', 'gallery_shortcode_custom');
    function gallery_shortcode_custom($attr) {

    this function overwrites the complete gallery structure which is fine but it should be a selectable option within the gallery menu where you select the order/columns in the post editor.

    see gallery settings here:

    Can anybody help me with adding this into the option popup?

    * how can I add a select button at the gallery settings?
    * how do I modify the function that it is only enabled when the option is selected?

    Thanks a lot for your input.

  2. gerald@WPcustoms
    Posted 4 years ago #

    can someone please move the topic to the wp-advanced forum? I think it fits better in there. Thank you.


  3. Romancenyou
    Posted 4 years ago #

    I have same trouble for my images on my site

    When I add images to show as gallary view all images are not showing as equal size.

    Any idea ???

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    @Romancenyou: Please post your own topic.

  5. Romancenyou
    Posted 4 years ago #

    Ok Esmi, Sorry for interruptions :(

Topic Closed

This topic has been closed to new replies.

About this Topic