I decided to modify the custom shortcode to make it a wrapper for the parent shortcode. Instead of returning a value, it now returns a call (using do_shortcode()
) to the parent with its “to” attribute dynamically set.
OLD VERSION
...
$val = get_some_value();
return $val;
NEW VERSION
...
$val = get_some_value();
return do_shortcode("[ut_count_up to=\"$val\"]");
Related Posts:
- Conditionally Loading JavaScript/CSS for Shortcodes
- Pass boolean value in shortcode
- Escaping quotes from shortcode attributes
- How to add ‘class’ attribute into shortcode [audio]?
- Automatically add this attribute to the gallery shortcode
- How to handle valueless attributes in shortcodes?
- Get multiple shortcode attribute values
- wpautop() when shortcode attributes are on new lines break args array
- Remove width and height attributes from [gallery] output
- Add attribute to existing Shortcode
- Shortcode displays only default attribute values
- Extending Shortcode attributes
- Remove HTML content if attribute is not set / variable attributes
- Global, network-wide shortcodes or text replace functions
- getting values from a shortcode with an include
- Why are Shortcodes Disabled in Widgets by Default?
- Add attribute to shortcode dynamically
- Replace / Remove Shortcode after 1st run / post
- Caption shortcodes not including caption as attribute
- Conditionally Loading JavaScript/CSS for Shortcodes
- Check if CTP category taxonomy is set in shortcode
- Passing variable in nested shortcodes
- Which wordpress function is the caption shortcode linked to?
- How to process a single attribute in a SQL request twice times?
- shortcode atts not working
- Second attribute of shortcode is not changing why?
- Replace custom gallery shortcode with default gallery shortcode
- Shortcode Attribute contains clone of all shortcode attributes
- How can I define the output of shortcode attribute value?
- Remove width and height attributes from [gallery] output
- how to have the gallery shortcode output one single UL list instead of several DL?
- WordPress transients for a shortcode
- Get post id shortcode
- How execute shortcode with javascript
- How to render complicated shortcodes
- My shortcode is not working in Contact Form 7 Message Body
- How to make this shortcode work for post content
- Get Shortcode Attributes
- How I make a shortcode for this code?
- Problem with email_exists in shortcode
- Get shortcode from the content and display it in other place (in sidebar, for example)
- Error do_shortcode In WooCommerce Template
- Executing a shortcode from a “normal” text/hyperlink
- Two different inner shortcode under shortcodes or multiple nesting of inner shortcodes
- Order Woocommerce Products by Latest Reviewed
- $content not null in shortcode, even though it is self closing
- Nesting shortcodes results in the inner shortcode being placed AFTER outer shortcode
- Create a shortcode that creates a form for users to edit their information
- How to split text text text into array
- How do you stop a shortcode from firing in the editor?
- menu item to display the most recent post
- how to format / execute post content and shortcode?
- How can I implement shortcode on click event
- Login form from shortcode doesn’t redirect after successful login
- How to list users by custom field?
- Form Shortcode not saving data to WP database
- Single post content custom order
- Adding a class to shortcode API
- Pass data back to TinyMCE from Thickbox
- Forcing WP to embedd a video when using a shortcode
- Shortcode for output of wp_get_archives displays at top of post
- How can I execute shortcode outside the loop?
- How to create shortcode to display perticular word from page title
- Shortcode is not returned correctly
- Echo HTML in custom shortcode
- How do I make a shortcode?
- Short code inside the page not working in WordPress
- How can I list only custom shortcodes?
- wordpress shortcode not working
- AJAX and do_shortcode
- FontAwesome Shortcode isn’t working properly
- Call Shortcode on wp_footer
- How to copy [gallery] shortcode between posts using polylang [closed]
- Shortcode not displaying video as expected
- Adding shortcode of “Random Content” Plugin in the post after the title
- How to Display Shortcode’s Content after Short Product Description?
- From a shortcode I want to pass a value to display a different page
- Jetpack gallery shortcode with slideshow
- Shortcode atts for WP Query args
- How to use code in an editor block?
- return an array with a shortcode
- wp.blocks.registerBlockType not showing what I want on the frontend
- PHP not outputting the onclick in anchor tag
- Create Button for Shortcode in Text Editor
- do_shortcode for is_page(slug)
- Custom Login in Shortcode got error
- WordPress shortcode Issue!
- Nested WordPress Shortcodes of Different Types
- Access Shortcode in ajax code?
- WordPress Not rendering short code properly?
- Initialize add_action() for every copy of a specific shortcode
- Shortcodes that are created based on user input information
- Remove some tags from shortcodes output? Trying to fix autop
- do_shortcode & render custom field won’t work
- shortcodes inside shortcode to sum values
- is_mobile as shortcode
- How to attach sidebar to shortcode’s output?
- Shortcode append to the the_content()
- Wrapping a function in html tag and return?
- How to use multiple values in “Shortcode”? [closed]