如何在wordpress中显示多个元键的热门帖子?

时间:2016-06-10 18:03:23

标签: php wordpress posts

我想在自定义页面中显示热门帖子,我在wordpress中添加了帖子视图和帖子之类的选项,我希望显示基于帖子的热门帖子和喜欢,

我尝试了这段代码,但它仅针对视图计数器进行排名;

FirstNames<-c("Chris","Doug","Shintaro","Bubbles","Elsa")
LastNames<-c("MacDougall","Shapiro","Yamazaki","Murphy","Elizabeth Ray")
Pets<-c("Cat","Dog","Cat","Dog","Cat")
Names1<-data.frame(FirstNames,LastNames,Pets)

FirstNames2<-c("Chris","Doug","Shintaro","Bubbles","Elsa")
LastNames2<-c("MacDougal","Shapiro","Yamazaku","Murphy","Elizabeth")
Dwelling<-c("House","House","Apartment","Condo","House")
Names2<-data.frame(FirstNames2,LastNames2,Dwelling)

感谢答案

1 个答案:

答案 0 :(得分:0)

尝试new orderby feature

{{1}}