Skip to main content
6 events
when toggle format what by license comment
Jun 6, 2016 at 19:28 vote accept Guy Ytzhak
Jun 5, 2016 at 16:08 comment added Guy Ytzhak @Milo What are you think about it? How do you store those things? 1) I need to display all tour(it post) dates in tour single page, and create taxonomy for countries. 2) I need to filter posts by dates and by taxonomy term 3) I need to create two drop down list (select) to filter. when you choose one select, the other select changes to only available. If you select India the dates select change to all available dates from all post from taxonomy India.
Jun 5, 2016 at 15:59 comment added Milo I would say you should rethink how you're storing that data then.
Jun 5, 2016 at 10:09 comment added Guy Ytzhak but I need array of all dates. the dates is array of terms id that have those dates. So by meta query I can't get this. I can get post, but here I need to get terms.
Jun 5, 2016 at 0:31 comment added Milo you should really be storing your dates as y/m/d and doing a meta_query on the date rather than querying for everything and filtering in PHP. if you eventually have lots of tours, you may reach a point where it no longer fits in physical memory.
Jun 4, 2016 at 17:52 history answered Guy Ytzhak CC BY-SA 3.0