wordpress相册gallery自定义

把这段代码添加到functions.php就可以实现相册gallery输出的自字义 add_filter( 'the_content', 'wpdocs_show_gallery_image_urls' ); function wpdocs_show_gallery_image_urls( $content ) { global $post; if( ! is_singular() ) return $content; if( ! has_shortcode( $post->post_content…