WordPress.org

Ready to get started?Download WordPress

Forums

create selectable custom gallery shortcode (5 posts)

  1. gerald@WPcustoms
    Member
    Posted 2 years ago #

    Hello,

    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:
    http://multimedia.journalism.berkeley.edu/media/upload/tutorials/wordpress-photo-galleries/wp-gallery.png

    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
    Member
    Posted 2 years ago #

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

    [Done]

  3. Romancenyou
    Member
    Posted 2 years ago #

    I have same trouble for my images on my site
    Romancenyou.com

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

    Any idea ???

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    @Romancenyou: Please post your own topic.

  5. Romancenyou
    Member
    Posted 2 years ago #

    Ok Esmi, Sorry for interruptions :(

Topic Closed

This topic has been closed to new replies.

About this Topic