朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

WordPress文章点赞量排行文章

wordpress文章点赞功能相信大家已经能够实现了,那么该怎么获取到文章点赞数量、和文章点赞排行文章呢?

这篇wordpress教程为你揭晓:

其实WordPress文章点赞量排行的实现原理跟获取最新文章、热门文章大同小异,只添加了’meta_key’ => ‘dotGood’ 字段,具体方法请看下面代码:

 1,
	'meta_key' => 'dotGood',
	'orderby' => 'meta_value_num',
	'showposts' => 20
);	
query_posts($args); if ( have_posts() ) : ?>


使用方法

将上面代码放到需要调用文章点赞量排行的页面,修改样式即可。

文章来源于互联网:wordpress文章点赞量排行文章

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » WordPress文章点赞量排行文章

评论 5

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #0

    I would like to thank you for the efforts you’ve put in writing this blog. I’m hoping the same high-grade blog post from you in the upcoming also. Actually your creative writing abilities has encouraged me to get my own blog now. Really the blogging is spreading its wings fast. Your write up is a good example of it. ラ ブ ド ー ル

  2. #0

    Unfortunately, long term treatment with tamoxifen has also been linked to an increased risk of endometrial cancer 9, 10 buy cialis 10mg When she was looking at this young man, the young man was seriously injured and unconscious

    Inefeby1周前 (03-17)回复
  3. #0
  4. #0
  5. #0

    http://vg0p312.cn/
    梅豆角
    再看看

    123cc2年前 (2021-09-18)回复