WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#40785 new defect (bug)

Image caption in WYSIWYG is not displaying in post page

Reported by: subrataemfluence Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.5
Component: Media Keywords:
Focuses: ui Cc:
PR Number:

Description

I have uploaded an image to my post via Media upload utility of WYSIWYG editor and added a caption to it. When I go the post page, the image is there but the caption is not showing up anywhere, which ideally should be underneath the image.

In wp_posts table the content was saved as:

<div class="section-hotel-details-text-all">Nestled among ski slopes in the Garhwal Himalayas, this secluded hotel is 23 km from Panch Prayag temple and 25 km from Nanda Devi National Park. In winter, the property is only accessible by cable car.</div>
<div class="section-hotel-details-text-all"></div>
<div class="section-hotel-details-text-all">Ranging from studios to 2-bedroom suites, the cosy lodgings come with cable TV and kitchenettes with minifridges, microwaves and stoves. Suites add living rooms and dining areas.</div>
<div class="section-hotel-details-text-all"></div>
<div class="section-hotel-details-text-all">Breakfast is free. There's also a relaxed restaurant, a game room and a bonfire area with regular entertainment. Ski equipment rentals and lessons are available, as are guided hikes and in-room massages. The property has a generator.</div>
<div class="section-hotel-details-text-all">

[caption id="attachment_713" align="alignnone" width="1600"]<img class="wp-image-713 size-full" src="/wp-content/uploads/2017/03/Auli.jpg" alt="" width="1600" height="924" /> Cliff Top Restaurant at 10000ft[/caption]

</div>

Attachments (2)

edit-post-with-caption.png (759.9 KB) - added by subrataemfluence 2 years ago.
Post in edit mode with caption (Cliff Top Restaurant - 10000ft): highlighted
no-caption-is-visible-below-image.png (586.5 KB) - added by subrataemfluence 2 years ago.
Caption is not visible on post page

Download all attachments as: .zip

Change History (3)

@subrataemfluence
2 years ago

Post in edit mode with caption (Cliff Top Restaurant - 10000ft): highlighted

@subrataemfluence
2 years ago

Caption is not visible on post page

#1 @rinkuyadav999
2 years ago

Hi @subrataemfluence

Style of Image caption depends on theme front end css and editor style / css. You can switch to core theme like Twenty Seventeen > https://wordpress.org/themes/twentyseventeen/ to test.

Note: See TracTickets for help on using tickets.