Searching By Custom Field Arrays
-
Slightly obscure request:
I have a number of posts with custom fields that are arrays of strings, like this:
Post 0 custom field 'listing_categories': array("Bars and Clubs","Cinemas") Post 1 custom field 'listing_categories': array("Cinemas","Galleries and Museums") Post 2 custom field 'listing_categories': array("Theatres") Etc.
Is it possible to extract posts with specific values for one of the items in the custom field array, ie find all posts with “Theatres” as one of their listings_categories? I’ve done simple custom queries in the past, but this is a bit more complicated, I think.
Values in the array will be chosen from a group of buttons in a custom write panel, so will be a subset of a known set of values.
Any advice much appreciated.
a|x
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Searching By Custom Field Arrays’ is closed to new replies.