query_posts issue
-
Was attempting to run a seperate query and then query_posts on it.
$my_query = new WP_Query();
$my_query->query_posts(‘meta_key=rotation_enabled&meta_value=on’);But I am receiving this error.
Fatal error: Call to undefined method WP_Query::query_posts()
If I switch the line to
$my_query->query_posts(‘meta_key=rotation_enabled&meta_value=on’);This works fine. All documentation that I have found points to the first example working. I am doing this in the header if that changes things but what am I missing?
Thanks,
Richard
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘query_posts issue’ is closed to new replies.