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 = ...
精彩评论