You can add to figcaption on your front-end.
<?php
if ( !empty( $images ) ) {
foreach ( $images as $image ) {
$image_post = get_post($image);
$caption = $image_post->post_excerpt;
echo
'<li class="animated fadeIn">',
'<figure>',
wp_get_attachment_image( $image, 'post-full-width' ),
'<figcaption>',
$caption,
'</figcaption>',
'</figure>',
'</li>';
}
}
?>
Related Posts:
- Update caption for metabox gallery images
- Get image captions for images on gallery post format metabox
- How to insert Gallery shortcode to a meta box
- custom meta box data not saved
- How to generate a featured image from a video embeded in a metabox
- Hide meta box based on post format
- How to add meta box for current post format?
- Unable to save multiple images in wordpress
- Remove Title, Editor and Meta Box Support Based on Post Formats
- Set Default Admin Screen options & Metabox Order
- How to set default screen options?
- Does WordPress have a “Form API”?
- Best practices for meta box placement?
- Hiding a theme’s meta box
- Access the environment of an admin page from another admin page
- Add filter ‘wpautop’ to meta box textarea
- Getting jQuery sortable items in custom metabox
- get_post_meta doesn’t work
- Dynamically Creating Meta Boxes
- How to get post attachments in gallery post format template
- Remove border on custom meta box
- Create a page Meta Box listing all blog users
- remove_meta_box for all post types doesn’t seem to work
- Post.php – Conditional statements for new post and edit post
- make a excerpt on data from a meta box?
- How to put Periods and Spaces for Array Values (Meta Key)
- Meta box io oembed returns list not array
- Add a custom field to top attribute in WooCommerce
- wp_editor in metabox not working
- Select box saves but doesn’t update value in admin
- Add_meta_box not appearing, but does appear in screen options
- Change the post date from a meta box
- retrieve meta key when checkbox is used
- Add Meta Box not showing on New Post – Custom meta box not showing
- update_post_meta and get_post_meta not working
- Repeatable custom meta fields
- Get all meta boxes values
- Metabox saves on Update or Publish, but not on Saving Draft
- Checkbox on a meta box using CMB2 Plugin
- How To Add Custom Meta PDF Upload Box to WooCommerce Products (and post link on frontend)
- Using WYSIWYG In custom meta boxes
- Visual/Text tabs in wp editor Not Showing
- Decide Metabox Configurations for All Users
- metabox select – frontend display
- How to add ‘data-caption’ inside an anchor tag
- Set default post author to none on new post
- how to save and get selected item id list with add_meta_box
- Remove anchor tag from meta box link
- cannot grab post meta from extended Walker_Category class properly
- Resetting admin post form on JS validation fail
- How do you List all Sidebars in a Metabox
- Create more Meta Boxes as needed
- Add a meta box to ALL Pages
- How to remove some metaboxes for CPTs?
- How to add metabox ONLY to specific WooCommerce product type [closed]
- Add metabox without the container
- wpalchemi metabox doesn’t show value from my post type
- HTML Table creator in metabox to put into post theme
- How to use Gutenberg in CMB2?
- Display Content if custom meta box checkbox is checked
- How can i get multi checkboxes value in metbox?
- Error showing in current page id in wordpress admin
- Show value of select dropdown in meta box
- Output list from each line of metabox (shortcode)
- Hybrid meta box, how to show?
- Include doesn’t work, getting strange path: (/usr/local/php53/lib/php) – Whats wrong? (WPAlchemy)
- wordpress alchemy put custom metabox on certain page only
- using WPalchemy to output custom metabox from homepage template
- save radio button selection in post-meta on submit
- Custom meta box data in rss feed
- ShortCut on meta boxes
- Post edit screen: How to check if meta_box is registered?
- Create shortcode for metabox gallery
- How to ‘clone’ select metabox options with a callback function? [closed]
- Saving multiple fields (dropdown and text) in custom metabox
- metabox dosn’t save with checkbox of post_type values order by taxonomy
- display all registered meta boxes
- where can i see the registered new field for posts using register_meta() ?
- update_post_meta doesn’t work
- Is there default meta boxes types that handles types and sanitization?
- how to update editor content from metabox
- Resposive admin classes?
- Only allow one meta key value per post in a category
- Make metabox always be on top (sticky)
- Ridiculous problem with CDATA [duplicate]
- Can’t save drop down select date in meta boxes
- Remove Captions from Custom Gallery function.php
- WordPress check if value equals and echo “checked”
- Custom metabox for file upload return empty filename
- Video slideshow
- Meta Box Value not saving / populating?
- Customer portal (posts as checklist)
- How to set default screen options?
- Reload meta box content with AJAX
- why esc_url not working in smartmetabox
- Change Default Custom Fields Metabox Name on cctm plugin
- Form submit from modal window to parent window
- How to display meta box data using “Meta boxes as needed”
- Datepicker altField and altFormat to save a new meta key/value in a post?
- My meta box don’t want to save value