Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#40930 new defect (bug)

Twenty Seventeen: Sharing buttons not showing with Video, Audio, or Gallery post format

Reported by: chocopress's profile chocopress Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords:
Focuses: Cc:


What's expected:
When sharing buttons are setup to show on the front page, they should be showing regardless of the post format.

What happened:
Sharing buttons aren't showing with Video, Audio, or Gallery format.

Discussed with @thomasguillot, who figured out the cause:

if ( ! is_single() ) {     

	// If not a single post, highlight the video file.     
	if ( ! empty( $video ) ) {         
		foreach ( $video as $video_html ) {             
			echo '<div class="entry-video">';                 
				echo $video_html;             
			echo '</div>';      

If it’s not single, only the video is displayed and nothing else, the sharing buttons require something like the_content() but it’s not being called for video post formats. This also applies to audio, and gallery post format.

Change History (1)

#1 @joyously
7 years ago

I discovered this same thing a different way. See item 3 on a support ticket that has been ignored for 4 months.

Note: See TracTickets for help on using tickets.