Php 主页上的问题和评论
我是编程新手,我需要你的帮助 我一直很难换衣服Php 主页上的问题和评论,php,facebook,Php,Facebook,我是编程新手,我需要你的帮助 我一直很难换衣服 <?php comments_number(__('No Comments', 'engine'), __('1 Comment', 'engine'), __('% Comments', 'engine')); ?> 添加到一行,该行识别fb用户的评论总数,并在主页上将其正确输入为元评论 我已经能够在single.php中使用 <span class="meta-comments"><fb:comments-c
<?php comments_number(__('No Comments', 'engine'), __('1 Comment', 'engine'), __('% Comments', 'engine')); ?>
添加到一行,该行识别fb用户的评论总数,并在主页上将其正确输入为元评论
我已经能够在single.php中使用
<span class="meta-comments"><fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count> Comments</span>
您能详细介绍一下您在尝试时得到的输出吗?当然,当在index.php中输入与我在single.php中输入相同的行时,它会显示“注释”,但无法识别计数。我已将该代码输入index.php供您查看。您能否向我们展示comments\u number()
函数?我看不到任何地方的第一行代码是有效的。你用什么连接到PHP/Wordpress中的facebook API?这是我的comments.PHP connect.facebook.net/en_US/all.js#xfml=1“>