[resolved] Searching Custom Post Type for three different meta values (2 posts)

  1. Yojance Rabelo
    Posted 4 years ago #

    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.


    Thanks in advance.

  2. Yojance Rabelo
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.