My Post Order
Get_posts not working (1 post)

  1. Hyp3R
    Posted 2 years ago #

    Hello !

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.