• Hi.

    I have a small problem that I haven’t found the solution too and I hope someone coupld please help me.

    I have some sticky posts, but they line up as stickypost 1, stickypostpost 2 and so on. They will always come first. But I would like the secound stickypost to show up after the 14 post. As (sticky)post 15. And it should alwasy show up as post 15. I also have a 3’rd sticky post and I want that to show up after post 22.

    Does this make any sense? ?? And is it possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Never tried this but…

    Your sticky posts always show up at the top of the $posts variable. The WP_Query object (if I remember correctly) makes special effort to juggle them around that way. You might be able to alter that query with some combinations of filters but I think I’d just reorganize the $posts variable.

    You can get all of the sticky post via get_option('sticky_posts');. Compare that against the first posts of your $posts, extract the sticky ones and use something like array_splice to reinsert the sticky posts where you want them. Then run the loop like normal.

    Is that something you can do?

    It is certainly possible, but will require coding a special template. If you are not comfortable doing that, you may need to hire someone to do the work. You can post a free job request at jobs.wordpress.net.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sticky futher down the page’ is closed to new replies.