Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using a custom field – entry_type – to add types to posts, for example, Gallery or Announcement etc.

On my archive pages, I want to then separate out the post types stored in entry_type. For examples:

Archive: Maths

Galleries: Maths gallery 1 Maths gallery 2

Announcements: Maths announcement 1 Maths announcement 2

So far I've got: http://pastebin.com/mRBKGBQD

However, this is pulling in all posts in any category where entry_type is equal to gallery. How can I make it just return the results within the current categories archive?

share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.