开发者

Wordpress post loop have posts fatal error?

开发者 https://www.devze.com 2023-01-18 18:46 出处:网络
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

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

精彩评论

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

关注公众号