you can change caption programmatically by jquery something like this:
( function( $ ) {
function function_name() {
$( '#gallery-<gallery_ID>-<image_ID>').text("new caption");
}
function_name();
} )( jQuery );
Related Posts:
- How to manually fix the WordPress gallery code using PHP in functions.php?
- How to draw media details for Isotope gallery using Photoswipe
- Add a class to the anchor tag on HTML5 gallery
- Custom gallery in wp3.5
- Detecting if parent page has gallery
- Auto create Nextgen Gallery on post creation [closed]
- Delete images from media library when user deletes an image from ACF Gallery
- Create shortcode for metabox gallery
- Display metabox galleries on specific page template in admin editor
- How to generate customized filtered output for the gallery
- Using catch_that_image() for galleries?
- Hide old attachments from wp media library
- PHP – redirect https to http and www to non-www
- WordPress Infinite Scroll without using any plugin
- How to remove a metabox from menu editor page?
- How to overwrite youtube embed?
- New Plugin Review
- Problems with function on function.php
- How to add SVG icon above product tab title
- Generating add_settings_section() calls dynamically
- Sort registered users by post count? (inside admin dashboard)
- How to change a public function inside a class of a plugin?
- Remove query string specific key value
- is_page “range” for if statement?
- WooCommerce – Reset quantity input field when variation changes
- Query all posts of a custom taxonomy term
- WordPress child theme fails to override parent navigation menu in /inc/structure/header.php
- jQuery not defined
- Converting HTML Template to WordPress Theme
- Error when adding excerpt to the content through functions.php
- Add data attribute to each li in menu
- Prev/Next child navigation for current page modifications?
- Adding rel tag to all external links
- How can I apply_filters from inside a function?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- How to abort saving data in save_extra_profile_fields function WordPress?
- Populate editor with some content of a page with a page template
- I want to load in a new class but only if the current page is single-movies.php
- Get the date of the className or classID
- Skt full width basic slideshow problem
- Noscript not working as it should in wordpress site
- How to set the WordPress logo programmatically with PHP
- Function works everywhere, how to keep it to execute when creating a new post
- Add login hyperlink to secondary navigation menu
- Pagination broken on is_front_page()
- Content filter won’t work
- Timthumb.php image gallery not working on Multisite WordPress
- Why does the post_type_link hook everything twice?
- use loop to return blog details
- Reading settings in the home page precisely home.php
- Fetching Initials of the Commentator in the WordPress Website
- Adding function to child theme’s function.php
- Calling function in loop causes repeat data
- Missing a text-domain esc_attr_e
- Is there a hack for using is_page() within the function.php file?
- Extract and display user infromation on an automatically created page
- Is it legal to redefine wp_password_change_notification in a mu plugin?
- How can I assign separate stylesheets to different pages?
- Add a select-option to the default widgets
- Programmatically revert to backup .htaccess a possibility?
- Execute PHP code only with specific user role
- WP Container Displaying Only on First Page of Archive
- WordPress User Meta value variable into Google Gauge Chart
- Show all people who commented on all posts by an author
- PHP function for horizontal Woocommerce thumbnails and badges
- Custom global variable not working in function
- Embed video from streamtape using direct link
- Is there a PHP function that will return the block ID generated by WordPress?
- Creating a Function and Call It
- WooCommerce display price before add to cart [closed]
- Show sidebar only to author of post
- How to move a post from one category to another
- get_the_author_meta( ‘ID’ ) just return 1
- how to add custom select field to wordpress edit page
- how to use 2 index.php file One for mobile and one for desktop
- Site title not showing. Please help me
- Check if post visited first time
- Store custom field’s multiple values in one user meta key
- Need to Echo A Url path to show on a wordpress page
- Theme editing “post thumbnail” help
- How can I export data without using any import/export plugin
- Restrict File Type Uploads by User on Wordress via functions.php
- How to Request a User to Register on Landing at a Site, Then Automatically Delete the Users Password on Logout?
- Matching multi user
- Add disclaimer before certain posts and pages
- AJAX Returning Way Too Many Posts
- Where can I find the declaration of `$_wp_theme_features`?
- redirect 301 with special character like WIX site “#!”
- auto metakey value on post tile
- How do I routinely extract the thumbnail of the most recent post?
- How I can add div to menu?
- Modify category archive page loop on functions.php
- How to print redirected query string variables to the page?
- Admin-area broken through weird issues
- Check if values exists DB
- Search box background on a different page template
- Select area and checkbox data is not saving?
- How to modify this function to exclude also the post belonging to a specific category?
- Suppress errors when using global function
- how to create twitter card without plugin in wordpress website?