WordPress.org

Ready to get started?Download WordPress

Forums

Show sticky posts, or specific posts, above randomised posts on front page (1 post)

  1. johnsamuels
    Member
    Posted 2 years ago #

    I am randomising post order using <?php query_posts($query_string . '&orderby=rand') ?>

    However this seems to override the sticky post function.

    So what I need is the php code to either specify that sticky posts are shown before the randomised posts, OR that specific post ids need to be shown before randomised posts. All on the front page of wordpress blog.

    Many thanks for any help.

Topic Closed

This topic has been closed to new replies.

About this Topic