Your caption shortcode seems to be missing the most important part: the image.
The caption shortcode in WordPress usually looks like this:
<img src="http://localhost/wp-content/uploads/2010/07/800px-Great_Wave_off_Kanagawa2-300x205.jpg" alt="Kanagawa" width="300" height="205" class="size-medium wp-image-6" /> The Great Wave
There you can see the alt
attribute, which is automatically set when you enter the alt text after uploading an image (here: “Kanagawa”). The alt text is not visible to users, but to programs like screen readers. The other text inside the shortcode (“The Great Wave”) is the caption, which on the front end is displayed below the image.
If your theme does something completely different with the caption shortcode, you should contact the theme developer and ask them for help instead.
Related Posts:
- get attachment title based on attachment id
- Media Upload Folder – how to manage
- Wrong image dimensions in Insert Media after add_image_size()
- PHP Fatal error: Call to undefined function download_url()
- Remove P tags from images
- Any easy way to automatically set the first inline image in a post as the thumbnail?
- Upload multiple images in a custom metabox
- How can I hide media library images from general users?
- Strange img srcset behaviour
- How to add php to theme to show alt attributes
- Why won’t these imported images show up?
- Remove rel=”attachment wp-att-XX”
- Using Taxonomy Image code with my get_categories code
- Get URLs for All Sizes of Image via Admin Panel
- Rename image during upload using date and time stamp?
- Upload thousands of images to WordPress without plugin?
- Images in the Twenty Fourteen theme
- Get author ID with attachment ID
- Show Post Excerpt in Image Attachement
- WP 3.4 has missing photo data
- How to add image id class?
- wp_get_attachment_url with specific image_size?
- Get meta data from image
- Shortcode for a link and thumbnail
- Bulk edit Gutenberg single images to change from linking to media file to attachment page
- Fuzzy Images in WordPress 4.4
- In Wordress one author can not see the other’s author uploaded images through media library
- How to add missing dimensions to all images to avoid cls?
- Prevent Image Pasting in RichText Component
- Why are images created by WP larger than the original uploaded image?
- Default Image Link Type Setting not Working
- Fallback for missing srcset images
- Scaling images for mobile
- How do I fix “Sorry, this file type is not permitted for security reasons”
- Replace image caption with its title and description
- Image LazyLoad plugin not loading jQuery dependancies with wp_enqueue_script in WP 3.3.1
- How to make thumbnails of uploaded animated gifs NOT animated
- Frontend Image Upload
- Multiple variables through wp_get_image_editor
- Removing featured image from gallery?
- Is it a good practice to change media settings on theme activation?
- Function to remove all classes on images inserted into posts?
- How to get the real file type for images that do not have an extension
- Images don’t update after being edited
- Display post image in a size defined by add_image_size()
- URL through custom field returning null
- Error uploading images in wordpress
- Large image not showing dimensions in Media Library
- Disable Media File Image Link On Mobile Devices
- Set two default featured images
- How to insert image path in database to display product image in wp-admin?
- Apply nextgen-gallery lightbox effect [closed]
- How to create a title images for different posts?
- How can I externally retrieve a post’s custom sized image
- Page speed error: “serve scaled images”
- WordPress Media Library – how to “uncache” images
- View photo album without having to scroll down for each picture
- How can i sorting and display image order by siz in media library?
- x2 images for retina?
- Is there a way to add a featured image to an image/file attachment page?
- Media Library Cleanup A Thought Exercise
- Save media files (images) to database instead of the filesystem
- i want to change URL of WordPress image or rewrite in runtime
- Load url image full size in thumbnail, medium, large size
- After migration, all featured images using accentued characters in their file names are displayed “blanked”
- Adding numbers to an image based on co-ordinates
- A query to substitute images paths in gutenberg (website migration)?
- link not working in image section
- Images missing from Blog post page
- Page size too big due to images
- WP Large Images crash page
- WordPress can’t detect any thumbnails size?
- Remove image border in twentyeleven theme [closed]
- How to display posts with images in fullscreen slider
- Prevent WordPress from creating individual size images
- Keep the original ratio in a thumbnail image
- What is the best way to handle Ajax image upload on front end?
- 403 Forbidden when accessing image in wordpress
- Why doesn’t WordPress make thumbnails for videos?
- For what does WP generate Thumbnails?
- Plain image uploading – no links, no classes, no sizes
- Thumbnail gallery by date and taxonomy
- Adding multiple images on my site – without using plugins [closed]
- Remove the height limit on wordpress 3.4.2
- > added to images link in WordPress
- Image media upload problem in page editing modus?
- Insert image doesn’t pickup right size
- Thumbs and pictures not showing anymore
- Is there a good way to use CMS images with CSS
- Upload image from other server without resize?
- Images will not attach to posts after site migration
- How to access & display images from a post without textual content ( and vice versa) according to best wordpress practices
- Forcing absolute src links in the RSS feed
- Stop underlining image links
- How to get attached image alt text in media.php?
- What type to upload image within theme options?
- Why some images are not allowed to be edited only for thumbnails?
- problems with alt text not appearing in source code
- Images uploaded in customized gallery do not link to media
- WordPress Site Broken and it gives Headers Already sent error