Use a function that doesn't return value insider wordpress shortcode -
i trying use jetpack sharing icons inside shortcode display grid post.. have not been able
because sharing_display( '', true ) outputs sharing icon , thought not displaying after using sharing_display( '', false )
still not able display icons
this code using..
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;
thanks in advance helping
Comments
Post a Comment