Get_posts not working
There is an issue when trying to use get_posts, it retrieves the last post instead of the specified section, query_posts works well with the same parameters, didn’t try the wp_query.
This is the code i am using (i just swap get_posts with query_posts and it works fine):
<?php $args = array('section_name' => 'home'); $query = get_posts($args); var_dump($query); ?>
I will try to dig a bit further in the plugin code to find out why this is not working.
- The topic ‘Get_posts not working’ is closed to new replies.