• Terence Pek

    (@terresquall)


    Hello,

    I’m building a site with a catalogue management backend on WordPress. I’m very impressed by the depth and flexibility of WordPress, and I have one question regarding get_posts().

    I have a custom post type called “Advert” with one taxonomy called “Type” (slug: “advert_type”). There are two categories of Advert Types now, lets call them “persistent” and “conventional”. I want a get_post() taxonomy query (tax_query) to be able to get me all advert posts categorised under “conventional” and “persistent”, but not if they are categorised only under “persistent”. How do I do that?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘get_posts() and Taxonomy’ is closed to new replies.