Skip to main content
10 events
when toggle format what by license comment
Sep 17, 2014 at 12:28 comment added coldpumpkin Hi again. There's only one problem! If I set the max posts e.g. 5 (2 for previous and 2 for next) it'll always give priority to the previous, so it'll show 4 previous always. How can we fix this?
Sep 17, 2014 at 11:46 vote accept coldpumpkin
Sep 18, 2014 at 13:44
Sep 17, 2014 at 11:46 comment added coldpumpkin You're the man! I thought it'd be much harder. Thanks!
Sep 17, 2014 at 11:43 comment added Chris Morris I updated the code so it should now show the current post in the others with a class of active so you can style it up.
Sep 17, 2014 at 11:42 history edited Chris Morris CC BY-SA 3.0
added 340 characters in body
Sep 17, 2014 at 11:37 comment added coldpumpkin Gotcha. And how exactly do I put the current in the middle?
Sep 17, 2014 at 11:35 comment added Chris Morris See my amended code, you nee 'posts_per_page'=>-1 to get all the posts, you can pass that what ever you want to get how many, but it will get them from latest to oldest unless you define the order. See the documentation for full order details
Sep 17, 2014 at 11:33 history edited Chris Morris CC BY-SA 3.0
Added posts per page
Sep 17, 2014 at 11:32 comment added coldpumpkin It's working! But it's only showing 3 extra post thumbs and they're random. Also there's no problem in showing the current post thumb! It should be something like the current post thumb in the middle, the newer to the left (or right or top or whatever) and the older to the opposite side. And perhaps having a way to specify how many I wanna show in both sides. Do you think it's possible?
Sep 17, 2014 at 11:24 history answered Chris Morris CC BY-SA 3.0