I would comment, but lack the pointage…
You seem to be on the right track:
I see that your shortcode callback and the function are named
differently: (f_gallery_shortcode
/ function_gallery_shortcode
).
Try this:
add_shortcode( 'ui_gallery','function_gallery_shortcode' );
function function_gallery_shortcode(){
$dynamic_h1 = "<h1>" . get_theme_mod('dynamich1') . "</h1>";
return $dynamic_h1;
}
now using [ui_gallery]
in your posts, should return the results of your Customizer value <h1>dymanich1</h1>
Related Posts:
- How to customize a shortcode using the customizer
- Can I create customizer setting that can handle plugin shortcode?
- How to enable shortcodes in text retrieved from get_theme_mod
- Shortcode don’t work in custom option field, any solution?
- Using get_option() in JavaScript
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- How to display the site name in a WordPress page, or post
- How can I put a wp_redirect into a shortcode?
- Native “playlist” shortcode random playing… How?
- How to display the names of users from a specific group with a shortcode?
- shortcode for logo image
- Stop strip_shortcodes() stripping content inside shortcodes
- How do i link gallery thumbnails to different url’s using the wp native gallery?
- Why do_shortcode is not executing the shortcode in data-* html attributes?
- How to save a shortcode in a Gutenberg custom block?
- Is shortcode_unautop() broken?
- Some doubts about gallery shortcode in WordPress
- Can a shortcode function this way
- Dynamically create shortcodes using add_shortcode and a callback
- Stop parsing shortcodes
- How can I make a shortcode from this code?
- Meta tags in shortcode
- Adding PHP/HTML code inside page from custom template
- ShortCode and extra
- How to change page title (from a plugin) in twentytwentyone theme
- WordPress Code Standards and Working $link Parameters In Shortcode
- Customizer live preview not working, refreshes but nothing change
- shortcode get thumbnail size
- Shortcodes Keep Wrapping in
- If you add a shortcode programmatically, but the code isn’t viewed on that request, is it still executed?
- Problem with using custom shortcode with ACF WYSIWYG field
- Preserve shortcode content formatting
- Populate shortcodes with table data and get next row
- Running shortcode with variable that is modified
- shortcode to display post by category entered by user without plugin
- Reloading a Mediaelement audio player
- Return a numerical function value in Customizer controls
- Shortcode is not processed when added to option field using wp_editor
- How to apply an ID to Shortcode Embedded iframe
- Adding Shortcode Values to wp_head
- wp_list_pages shortcode jumps above previous content
- Retrieving post excerpt as a shortcode
- Using $this from child class inside shortcode function
- Shortcode is not working
- Shortcode outputting at top of content
- Will a shortcode placed inside a paragraph tag still be valid?
- Why can’t I display attachment_image_src with Custom Size?
- Shortcode Strategy
- Enclosing Shortcode is acting like self-closing
- Shortcode into the same shortcode
- How do I define and register a shortcode function in a namespaced functions.php file?
- Change user meta value with shortcode
- Execute shortcodes in PHP
- A shortcode nested inside a shortcode
- WordPress User ID as Shortcode
- Custom Shortcode + Querying and Ordering Posts using multiple Advanced Custom checkboxes
- call other shortcode in the email contactform7 send [closed]
- find shortcode inside content of post
- WordPress Short code for List style
- Putting a space between the buttons [closed]
- Dynamic number within shortcode
- How can i strip shortcode from HTML title tag?
- Need help with creating a simple shortcode
- Returning HTML to Shortcode Block
- WP REST API remove the WordPress shortcodes from the JSON wp/v2/posts content->rendered
- Using a WP shortcode in Homepage
- i want to show a modal when user lands on home page very first time
- Hide download option video shortcode
- WordPress Shorcode Display hierarchical taxonomy [child, parent]
- Shortcode not working in Jetpack Top Posts & Pages widget
- Gutenberg running code only available in front end within shortcode
- Insert HTML in content property and render it using shortcodes
- Redirect per shortcode if user is logged in
- Shortcode, vs blocks, vs templates – what would you do for choosing or creating custom post data in editor?
- Logout user if click on a custom page link
- Shortcode Attribute not defined
- Convert WordPress shortcodes into plain html
- Second attribute of shortcode is not changing why?
- How to make a shortcode with a line break in it parse correctly?
- Load next post by ID on a single page
- Plugin Shortcode value in post
- Access preview settings in php
- Add catagory attribute to custom shortcode
- Woocommerce Filter Main Loop by Tag [closed]
- Shortcodes: override a shortcode / change shortcode on the fly
- Separating Custom Template logic
- Remove width and height attributes from [gallery] output
- How to make CSS load live based on options clicked in the theme customizer?
- woocommerce Product shortcode create [closed]
- A number appears inside a div called wpb_wrapper, when I use a custom shortcode
- Enclose article’s body with default shortcode
- Help with Shortcode Functionality
- Shortcode Site include in a other
- Why is my ajax live search not working when i use a shortcode to call it?
- How do write this type shortcode? [closed]
- WordPress functions.php shortcode is not working [closed]
- My first WordPress shortcode just returning []
- WordPress shortcode select option not working [closed]
- I have the query code but not the shortcode
- wordpress how to sort posts on custom data with plug-in “Search & Filter”