WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: AStickyPostOrderER] Use it with get_posts (2 posts)

  1. lightmar
    Member
    Posted 5 years ago #

    Hi,

    The plugin works great.
    I have dropdown menu of posts, and I would like the posts there to be ordered as well. Can someone help me accomplish that?
    Currently i'm using the following code:
    $postsList = get_posts($args);
    foreach($postsList as $postItem) { ?>
    <li class="cat-item">post_name ?>"><?php echo $postItem->post_title ?>
    <?php } ?>

  2. sarahd
    Member
    Posted 4 years ago #

    Try using query_posts to loop through your posts instead: http://codex.wordpress.org/Template_Tags/get_posts.

Topic Closed

This topic has been closed to new replies.

About this Topic