Skip to main content
7 events
when toggle format what by license comment
Mar 5, 2022 at 12:33 history edited Nicola Risimini CC BY-SA 4.0
added 256 characters in body
Mar 5, 2022 at 0:05 comment added CommunityBot Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
Mar 5, 2022 at 0:04 comment added Tony Djukic In short, yes, it can be done, but to give you a proper answer that you can accept, you'd need to include what you're working with. I've done exactly this for the purpose of placing ads into a grid of posts. But whether or not it would work for you is entirely dependent on what you're working with, how the page where this is happening is being built, etc.
Mar 5, 2022 at 0:02 comment added Tony Djukic This could be done using 'WP Sticky' posts and purely just CSS in some instances, it would really depend on how your posts are displayed. Could also be done with JS by grabbing the first two posts loaded, then re-appending them to the parent container. You could use WP categories and make a category called 'featured', pull the 1st post fromit, then run your query but count the iterations as each post loads into the loop, when the count = 1 (because PHP will start counting from 0), you first add the 'featured post' and then add the post, the rest of your posts will then just load normally.
Feb 24, 2022 at 23:21 review Close votes
Mar 11, 2022 at 3:06
S Feb 24, 2022 at 18:25 review First questions
Mar 5, 2022 at 0:05
S Feb 24, 2022 at 18:25 history asked Nicola Risimini CC BY-SA 4.0