WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a scenario where I need to account for promo posts/ads within a category. For example, say I have a category called "featured", when I click through to this category, posts #2, #6 and #8 will display posts from the "Promo" category, while the rest of the "featured" posts would continue to render as normal.

My thinking was to create a "Promo" category, and add a custom field of "sequence" to the posts within this category. Then, during the rendering of the featured loop check the position in the loop, check to see whether a post of Promo with sequence position exists, and display this, somehow - I'm not sure how.

What would be the best way to implement this?

share|improve this question

The sequence field would determine where the promo post appears (position 2, 6, 8)?

Anyway, I'd do it (and actually have done it) that way and would do it like that again. No other, more elegant way that comes to my mind.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.