• Resolved km

    (@kmaisch)


    Hi,
    Can anyone tell me how I would change this code:

    <?php if(have_posts()) : ?>
    <?php while(have_posts()) : the_post() ?>

    To display the “sticky” posts first? (in order of newest to oldest), followed by the non-sticky posts (also in order of newest to oldest)?

    Cheers,
    Kim

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter km

    (@kmaisch)

    Ah, thanks. No luck with that plugin I’m afraid.

    So multiple loops… as in returning just the sticky posts, and then returning the non-sticky posts – in 2 separate loops?

    Cheers,
    Kim

    Hi,

    &caller_get_posts=0 shows sticky post at top of page but it shows all posts on index page with out pagination. Pagination works only on normal posts.

    Anyone have idea to show sticky post on top with pagination ? For e.g. if i have total 100 posts and 30 of them are sticky. Post per page sets to 10 than for first 3 pages, it should show sticky posts and than after normal post of rest of 7 pages.

    Any help ?

    Thanks,
    Rakshit Patel.
    PHP Programmer India

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Order posts by “sticky posts” first?’ is closed to new replies.