下面是我的代码。循环中的当前URL不共享给脸书。
所以请尽快帮我。
<?php(电话)
$wp_query=新wp_query(数组('post_type'=>'news','order'=>'DESC','order_by'=>'date','post_per_page'=>'3');
while($wp_query->have_posts()):$wp_cquery->the_post();
echo get_the_id();
echo do_shortcode(“[cresta-social-share]”);
endwhile;
?>
你好,nilamsqt,
该插件仅适用于“个别页面”,而不适用于显示帖子列表的页面。
更多信息请点击此处https://wordpress.org/plugins/cresta-social-share-counter/faq/
顺颂商祺,
Cresta项目