[wp-trac] [WordPress Trac] #40930: Twenty Seventeen: Sharing buttons not showing with Video, Audio, or Gallery post format

WordPress Trac noreply at wordpress.org
Tue Jun 6 12:05:48 UTC 2017


#40930: Twenty Seventeen: Sharing buttons not showing with Video, Audio, or Gallery
post format
---------------------------+-----------------------------
 Reporter:  chocopress     |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 '''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.

 [[Image(https://cldup.com/gbtIq-Ohq4-3000x3000.png,75%)]]

 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40930>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list