If you want to do this via AJAX, on the server side you could do something like the following:
add_action( 'wp_ajax_nopriv_update_shortcode_content', 'update_shortcode_content' );
function update_shortcode_content(){
if( !empty( $_GET['new_shortcode_value'] ) ){
$updated_content = do_shortcode( '[theshortcode value="' . $_GET['new_shortcode_value'] . '"]' );
wp_send_json( array( "content" => $updated_content ) );
}
}
Related Posts:
- Creating Multiple wp_localize_script for Shortcode?
- Add custom shortcode button to Editor
- call shortcode in javascript
- Including javascript for a shortcode
- Localize variable for multiple Shortcodes
- How disable checkbox when listbox value changes in tinymce
- Creating multiple enclosing shortcodes and fixing JS issues on click
- WP UI style within shortcode – Any Suggestions?
- Why Won’t my jQuery Play Nice with WordPress?
- include shortcode values in Thickbox form
- Populating shortcode values dynamically in theme template
- Nested Gallery Shortcode INTERMITTENTLY working
- Change shortcode value by jquery in WP Editor
- echo do_shortcode for Contact Form 7 from within dynamically loaded php file
- How to add shortcode to show/hide press releases?
- Uncaught TypeError: undefined is not a function (shortcode-box)
- Append jquery script for each [partners] shortcode with specified values
- Create a short code that inserts js
- jQuery not working for tabs shortcode [closed]
- How to set time delay in javascript
- Disable button in jQuery
- Submit a form using jQuery
- Adding placeholder attribute using Jquery
- wait() or sleep() function in jquery?
- Force a default browser on my android phone using a simple html shortcut page
- Ajax Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
- Enable & Disable a Div and its elements in Javascript
- Which selector do I need to select an option by its text?
- Check if inputs are empty using jQuery
- The ‘describe’ keyword in javascript
- e.preventdefault(); not working
- How to empty input field with jQuery
- Using WordPress 3.5 Media Uploader in meta box?
- CSS not pulling in for jQuery UI dialog
- WordPress Ajax URL for function in functions.php
- Move WordPress native javascript to bottom of page?
- Lightbox popup on WooCommerce add_to_cart action
- Loading style.css and Jquery using HTTPS
- AJAX function returning -1
- jQuery AJAX form validation
- Uncaught TypeError: Cannot read property ‘replace’ of undefined
- Is it worth updating WP admin to jQuery 1.5?
- Proper way to load a single post via Ajax?
- Trying to get single posts to load on the front page via ajax
- Ajax not firing properly using Firefox, but works in Chrome
- Get ACF value in external jQuery document
- Adding jQuery dependency prevents my script from enqueuing/loading
- How to pass jQuery ajax URL value
- Gravity Forms not loading under https, jQuery is not defined
- Automatic jQuery accordion from header tags
- Adding a character counter to the excerpt metabox
- How to deregister a jquery version for a specific page?
- Enqueuing javascript files
- How to undo deregister script and use local versions?
- Can’t load a class into WordPress post editor’s content field
- How can I check email exists via a jquery keyup()?
- How to Dynamically Load Content Into Body of Bootstrap Modal Window?
- Frontend Post with JQuery AJAX to Php Issue
- show/hide div with simple jQuery script [closed]
- Searching multiple tags and adding jQuery dependant script onto page template?
- TinyMCE 4 remove/add attributes for all images
- Validating a cloned/repeatable input (jQuery) [closed]
- Trouble adding inline style after jQuery in the footer!
- Why load JS through the CMS framework? [duplicate]
- delete post meta by AJAX
- url – ajax loaded but no JS
- jQuery does not work on WordPress editor
- Adding URL of PDF from Thickbox in a Meta Box
- how to json_encode(); the Loop content so that the encoded array is [“0”:content, “1”:content]
- problem with jquery 3.5.1 in footer
- How to call custom jQuery plugins into the customizer controls
- Change zurb foundation top bar style on.scroll in wordpress theme using jquery and css
- click event to unhide something after ajax not firing
- WP_ENQUEUE not working with Foundation 5
- Save jQuery UI Sortable on WordPress
- Why does WordPress load jQuery in my header instead of footer?
- Problem adding MP3 attachments to a jPlayer playlist
- wp_enqueue_script jquery and jquery ui not working
- Axis guidelines over an image
- WordPress forbidden 403 on delete in production vs local environment
- jquery Autocomplete
- Homepage loads many unnecessary jquery-ui files
- Get ajaxForm response value
- Update a parent theme JQuery property in the child theme
- Refresh widget admin page resetting jQuery hidden class
- Autocomplete for titles via ajax – rework of past post away from like_escape()
- Ajax Request with jQuery not happening
- Bootstrap with Flexslider jQuery Issue
- Sorting UL Listing Within the TinyMCE Visual Editor in WordPress
- My .js file is getting a 404
- Contact Form 7 submission does not complete [closed]
- how to display post in jquery slider and carousel
- Carousel Hover Image
- What is calling jquery?
- shortcode execution when the page is opened
- Sending jQuery variable to php function
- How to enqueue script before jQuery? [duplicate]
- javascript and css not loading properly in WordPress site
- Override default options in plugin metaboxes
- I have made this form and i want to show this form in a popup by clicking on the filters button which is in a shortcode html in function.php file