Skip to main content
8 events
when toggle format what by license comment
Dec 15, 2016 at 14:14 comment added WashDCDev Cool; excellent answer.
Dec 15, 2016 at 14:14 vote accept WashDCDev
Dec 15, 2016 at 10:52 comment added InanisAtheos @WashDCDev I have amended my answer with both the category and tax_query code.
Dec 15, 2016 at 10:51 history edited InanisAtheos CC BY-SA 3.0
spelling error, removed unnecessary // comment
Dec 15, 2016 at 7:44 history edited InanisAtheos CC BY-SA 3.0
Amended my answer to include the tax_query and 'category' filter.
Dec 15, 2016 at 7:40 comment added InanisAtheos @WashDCDev Yes that would work. If you use it for custom post type however, you'd need to use 'tax_query' which is a bit more complicated, but still easy imho. I'll amend my answer to include the category filtering.
Dec 14, 2016 at 16:53 comment added WashDCDev So with this function, I can filter by category? Reading documentation, looks like $query = new WP_Query( array( 'category_name' => 'staff' ) );?
Dec 14, 2016 at 15:14 history answered InanisAtheos CC BY-SA 3.0