• Hi,

    has someone noticed, that the function get_posts() doesnt sort posts anymore?
    Does somebody has a solution?

    $myposts = get_posts("category=".$cat->term_id."&numberposts=99&orderby=post_name&order=DESC");
    
    foreach($myposts as $post)
    {
    the_title();
    }

    gets the following List:
    * Cental Park
    * Brooklyn Bridge
    * Flatiron Building
    * Madison Square Garden
    * Grand Central Station

    Thanks for support 🙂

The topic ‘[Bug 2.6] get_posts doesnt work’ is closed to new replies.