WordPress.org

Ready to get started?Download WordPress

Forums

My Post Order
Get_posts not working (1 post)

  1. Hyp3R
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/my-posts-order/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.