Shortcodes are intended to be used by humans, to be some kind of macro that even the most techno-phobic author can use. If you need to have arrays of attributes, or any other complex structure for which the author has to attend CS 101 in order to understand its use, your shortcode is just a fail.
If you need a shortcode with complex data, the more sane way to do it is by separating the placement and the actual data input. Create a meta box section in which users can have a nice UI in inputting the data, and use [myshortcode]
in the text just as an indication where that data should be displayed.
Related Posts:
- Checking if an attribute exists in a shortcode
- Any way to use a custom Parameter for youtube embed without using an iframe?
- How to modify shortcode attributes with data from current post
- Input with spaces in Shortcode attributes overwritten by defaults
- Calling an attribute from a plugin shortcode
- Best place for short bio,image and button [closed]
- How do I apply style to each category of a list?
- Redirect to another page using contact form 7? [closed]
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- Get param from shortcode in plugin function
- Adding a Tag Parameter / Filter to My Shortcode
- How can I replace content on site generated from plugin without changing plugin
- Rename Smart YouTube’s httpv back to http for all posts
- save short-code in my custom plugin settings problem missed something
- Hide some shortcodes on posts from back-end
- do_shortcodes() isn’t working
- How to implement a customizable free OpenID authentication?
- Creating Unique Post URLs for A/B Testing… Is this even possible?
- How to delete the Hello Dolly plugin automatically?
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- All shortcodes not working on custom theme
- enqueue script only if it is not already enqueue
- Open external links in a new window
- How to parse nested shortcodes?
- How can I limit functionality in one version of a plugin?
- change plugin shortcode function [closed]
- Dynamic HTML not displaying at respective place
- WordPress 3.1 and Disqus throws Warning: number_format() error in Posts List
- Short code for Venues
- Shortcode doesn’t work if I directly paste its function in a template file?
- Leveraging WordPress Comments on Custom Plugin Object page
- Debugging Technique Question re: functions.php
- Is there a way to alter the order in which the plugins appear in the page?
- How to check what plugins used to be on a WordPress installation?
- Possible to replicate economist.com’s debate section in wordpress? [closed]
- FacetWP group listings by custom field [closed]
- How to generate CSS from a shortcode within a plugin
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme
- Remove Duplicator plugin from admin menu if not an administrator
- Add a custom form on the post-new.php admin page
- Edit Yoast SEO breadcrumbs output [closed]
- How to put JQuery/Ajax inside shortcode?
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- Can someone please tell me what is wrong with my plugin?
- Trouble with editing template for “List category posts” plugin
- WordPress function not being called from jQuery method
- className not populating in custom block
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- In the archive widget, how do I sort in between two years?
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- creating a custom shop page display on archive woocommerce
- How to redirect users to their profile after they successfully edit their profile
- Use $_GET inside a shortcode print empty Array
- Render Modula Plugin Shortcode On Ajax Request
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Shortcode not getting replaced
- Shortcode Attributes to Return different $_POST
- Customizing a blog page layout
- Loop returns the current page’s permalink and guid instead of the post in the loop
- How to display an alert when deleting a plugin?
- unregister a sidebar widget
- Elementor Pro display featured image on section -> style -> image using shortcode
- woocommerce remove coupon link does not work
- Getting infinite scrolling working on my custom template
- Adding discount functionality to the cart
- Changing the CSS with a plugin
- Shortcode show error while editing post
- Precheck fields when I add a new post
- Get Shortcode output to database for static post_content
- Issue Saving Posts That Contain Shortcode
- Using Shortcode Result In Custom HTML Block (Using Google Sheet JQuery Result As NumScroller data-max)
- Custom wp_list_tables redirect on specfic page
- How to use plugin’s shortcode in custom design? [closed]
- Paid Membership Pro displaying a user name in PHP
- Automatically check “Enable stock management at product level” to the existing products?
- WP Plugin CSS not being applied to page
- Creating Nested custom fields
- Multiple calling javascript from shortcode in one page
- Find all strings between an enclosing shortcode
- Is there a function to search for a wildcard value when calling a shortcode?
- Plugin does not create a custom table upon activation
- Plugin program: JQuery not working in this plugin
- Multiple level shortcodes
- How to load a plugin when doing an Ajax call? [duplicate]
- Trying to override/intercept a PhotoMosaic gallery link in WordPress using jQuery
- admin panel save option with ajax
- Get page type to display content
- How to fix vanilla comments extra iframe space
- Woocommerce quick checkout form [closed]
- Creating Features List in WordPress Post
- How to add image for custom taxonomy
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- Wrapping code in an if block
- I am experiencing difficulty fulfilling client request
- How can I properly sanitize the update_option in WordPress?
- Resources for building a custom event page template
- Product customizing quiz – quiz adding products to the cart