使用不使用';wordpress短代码中的t返回值

使用不使用';wordpress短代码中的t返回值,wordpress,function,shortcode,jetpack,Wordpress,Function,Shortcode,Jetpack,我试图在显示帖子网格的快捷代码中使用jetpack共享图标。。但我一直未能做到这一点 因为sharing_display(“”,true)输出共享图标,所以我认为它没有显示,但即使使用此sharing_display(“”,false)我仍然无法显示图标 这是我正在使用的代码 if($loop->have_posts()): $html.='<div id="oj-blog" class="section blog-wrap"> <div class

我试图在显示帖子网格的快捷代码中使用jetpack共享图标。。但我一直未能做到这一点

因为sharing_display(“”,true)输出共享图标,所以我认为它没有显示,但即使使用此
sharing_display(“”,false)
我仍然无法显示图标

这是我正在使用的代码

if($loop->have_posts()): 
$html.='<div id="oj-blog" class="section blog-wrap">
          <div class="container">
            '.(($title?'<div class="title">
                <h2>'.$title.'</h2>
              </div>':'')).'

              <div class="row">';

while($loop->have_posts()):$loop->the_post();       

$html.='
          <div class="blog-single">

              <h3>'.get_the_title().'</h3>
              <p>'.get_the_excerpt().'</p>';
if ( function_exists( 'sharing_display' ) ) {
$html.=       sharing_display( '', false );
      }
$html.=       '<a href="'.get_the_permalink().'">Read More</a>
          </div>';

endwhile;    
endif;     
return $html;
if($loop->have_posts()):
$html.='
“($title?”
“.$title。”
':'')).'
';
而($loop->have_posts()):$loop->the_post();
$html.='
“.获取标题()
“.获取摘录()。

”; 如果(功能存在(“共享显示”)){ $html.=共享显示(“”,false); } $html.=' '; 结束时; endif; 返回$html;

提前感谢您的帮助

您是否尝试过共享显示内容()您是否尝试过共享显示内容()