Skip to main content
11 events
when toggle format what by license comment
Nov 30, 2015 at 7:46 comment added Pieter Goosen I don't yet know exactly what I want the other sections to display. IMHO, your lack of desicion at this stage makes it really impossible to answer you directly. Even with this new updated answer, it is still really bad for SEO and page speed. The global main query objec is there, it is just a matter of using it correctly ;-)
Nov 30, 2015 at 7:06 comment added ninja08 I guess it's logical that I'd be trying use the same list of posts for the category and spread them across the entire page. I'm not trying to do that. I'm repeating the query again and again in different sections, except limiting the number of posts each time. So his answer makes sense if that's what I were trying to do. Now, why would I want to do what I'm doing? Because the sections will change later and this is a placeholder. I don't yet know exactly what I want the other sections to display.
Nov 30, 2015 at 6:59 comment added Pieter Goosen Why are you still running custom queries. It still makes no sense running custom queries. Your question also still does not really explain why
Nov 30, 2015 at 6:56 comment added ninja08 I updated my answer with a more performant version of what I had.
Nov 30, 2015 at 6:53 history edited ninja08 CC BY-SA 3.0
added 34 characters in body
Nov 30, 2015 at 6:05 comment added ninja08 Thank you for sharing. I didn't know that. If it works I'm more than happy to give him credit.
Nov 30, 2015 at 4:37 comment added Pieter Goosen This is an even worst solution than your actual problem. @Milo has linked to a post which will solve your issue, no idea why you do not want to use it. Using query_posts is really really bad, and running it 5 times is 5 times worst. If you are after SEO and page rankings, you will never reach top 1000 as query_posts slows your page down dramatically, and using it 5 times adds up to even slower page loads. Consider using the solution that @Milo have given you
Nov 30, 2015 at 4:05 history edited ninja08 CC BY-SA 3.0
deleted 17 characters in body
Nov 30, 2015 at 3:48 comment added ninja08 negative 1 for what reason? Don't down vote without proper feedback. At least in the future I can correct myself.
Nov 30, 2015 at 3:46 history edited ninja08 CC BY-SA 3.0
deleted 35 characters in body
Nov 30, 2015 at 2:41 history answered ninja08 CC BY-SA 3.0