I think it is easier to introduce the shortcode [imgs]
that could be used like this:
[imgs id="12,13,14" w="200,300,400" h="300,400,500"]
[imgs id="19,20" w="50,60" h="80,100"]
then you can explode each attribute with respect to comma (,) and loop over corresponding array.
Related Posts:
- Wrapping shortcodes in another shortcode
- Add self-closing shortcode button to TinyMCE in WP 4.6
- Optimize shortcode callbacks
- How would I create a plugin for my shortcodes?
- How to prevent newline from appearing in shortcode?
- Shortcode adding p and br tags
- Are shortcodes case-sensitive?
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- How to catch images with blank dimensions?
- How to make WordPress use non-greedy shortcode parsing?
- Multiple Parameters for a Shortcode
- How do I make specific plugin functionality apply to different sites in a network?
- Shortcodes, output buffering, and WordPress functions
- Filter on the_content ignores shortcodes
- stray elements
- Pass javascript result to shortcode executer function
- Front-End Form Submission in Shortcode
- How to get shortcode to work inside a foreach loop called within a shortcode?
- Get returned variable from a function to add_shortcode function
- What is rich_editing?
- Why is my shortcode not working
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- On plugin deactivation hide its shortcode
- Can’t get JS code to work with shortcode
- add_shortcode is not working [duplicate]
- Adding Automatically To In WordPress Using Filter Referencing?
- How can I render shortcode so that its not cached by Caching plugins?
- Is it possible to delay execution of shortcode output callback?
- How do I write a shortcode that opens and closes?
- Using a Shortcode to Replace Themes Stylesheet?
- Gutenberg Block showing invalid content on edit
- Storing product price data in the database
- What is the best way to embed an JS App in a WordPress Page?
- What is the proper way to include Bootstrap when executing a shortcode
- Auto gallery from folder contents
- Secure Pages Best Practice
- Adding option to Gallery shortcode
- Asynchronously render shortcodes in TinyMCE visual editor
- Custom login doesn’t work properly
- Run Shortcode of post’s custom field in functions.php / Plugin
- Shortcode returning localized HTML part
- Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”
- Enumerating shortcode attributes in JavaScript
- Wrap text around shortcode
- wp_nonce_field displaying twice
- How to handle shortcodes through plugin
- Using a custom shortcode from within the template of a shortcode plugin
- When echoing my own shortcode, it keeps adding a 1 at the end of my blogpost
- Automating the process of shortcode generation in a plugin – how is it done?
- Create Widget or Enable Shortcodes in Sidebar
- Shortcode not appearing when used as post content in wp_insert_post() or possibly, shortcode not being registered at all
- How to display the categories on page using shortcode?
- Shortcode conflicts
- How to create ShortCode
- How to display the specific post content by using POST ID
- How to output functions from plugin inside theme
- add_filter img_caption_shortcode not implemented
- shortcode tags not working in do_shortcode
- How to insert HTML/CSS/JS into my iframe plugin?
- Including template in shortcodes
- Passing values between enclosing and enclosed shortcodes
- Extract Information from post content (using regex?)
- post content and shortcode content displaying out of order
- Font size of HTML content
- Cannot output plugin twice with shortcode
- Paragraph Tags removed when contents are only a shortcode
- How to call a function from a shortcode function in an oop plugin
- WPGut – Updating failed and shortcode?
- How to write a custom shortcode name book?
- By adding “?login – failed” code unable to access my dashboard
- How can I pass WP_Query results to a plugin?
- How can we stop showing short code in create or edit post section
- WordPress Own Rewrite Rules
- Shortcode content is not showing. Only the [shortcode-tag] is showing
- Including content into an add_shortcode() function
- Pass javascript result to shortcode executer function
- Some data has already been output, can’t send PDF file – fpdf issue in WordPress
- How do I make two shortcode use the same id and increment it when I use them multiple times?
- Shortcode from a plugin not working
- Problem to return more than single line captions
- Which filter to use to pre-parse form elements, which are generated by plugin’s shortcode?
- Caption Shortcode: what filter to change the image size?
- Is there a way to tell if a shorcode’s handler is being run before or after the content formatting filter?
- How to add conent (text) to Add New pages form of admin in WordPress
- Do a summary based on sections in a post
- Children Shortcodes?
- Identifying a Page Containing Shortcode at `init`
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- How to show custom taxonomy child posts through shortcode in WordPress
- Multi-part form and wp_redirect()
- add short code not working
- Create pages for authors
- Correct usage of scripts with shortcodes
- Shortcode attribute “title” doesn’t appear in $atts array
- Developing a wordpress.com shortcode [closed]
- WordPress simple ‘Hello World’ plugin – problems
- Shortcode rendered in preview, but empty in post
- How to display .ptm file in my WP site without JAVA
- Leveraging Core Functionality in Icon Upload Plugin [closed]
- Developing an IP lookup function using an API