可以参考本站底部
直接把下边的代码放到要输出显示的位置即可。
WordPress如果要在网站底部显示,将代码添加到主题目录下的footer.php
[start-plane type=”4″]页面加载时间[/start-plane]
<?php timer_stop(1); ?> //网页加载时间(秒)
[start-plane type=”4″]页面加载次数[/start-plane]
<?php echo get_num_queries(); ?> //网页加载查询量
[start-plane type=”4″]百度收录数[/start-plane]
<span id="shoulu"></span>
<script type="text/javascript">
var url = 'https://api.uomg.com/api/entry.baidu?domain=blog.xygeng.cn';
$.getJSON(url,function(data){
$('#shoulu').append('百度收录: '+data.data+'条');
});
</script>
正文完