开发者

Wordpress post loop have posts fatal error?

I made a custom post loop query based on data from another plugin.

I get this error:

Fatal开发者_StackOverflow社区 error: Call to a member function have_posts() on a non-object

Here is the code I have made:


You assign the select to $most_viewed var, but then you want to pass $sql variable. In the beginning, change $most_viewed = to $sql = ...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜