• Hi there,

    I have this form which allows you to search for post in a custom post type. In order to find a matching post, all three meta fields must match otherwise the post doesn’t belong in the result set.

    Please take a look at the code I’m using, I can’t find the problem with it. I implemented one that’s very close to this one but using Taxonomies and I thought using custom fields would be easier but it turns out it’s not.

    http://pastebin.com/V2mBdJAd

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter Yojance Rabelo

    (@yojance)

    It turns out that my code was right but there was a name mis-match in the info I was storing into the database. I thought I was storing the ID when in fact I was storing the slug so nothing was being returned because it didn’t match.

Viewing 1 replies (of 1 total)
  • The topic ‘Searching Custom Post Type for three different meta values’ is closed to new replies.