Support » Fixing WordPress » Is it possible to create a custom search function that does this?

  • Hi,

    I started creating a search that needs to do the following:

    search strings (search by keyword)
    AND
    search by meta key values (may have multiple values)
    AND
    search by category (may have multiple categories selected)
    AND
    search by a different meta key value (will only have one value)

    It’s been difficult so far, and I haven’t actually found any plugins to assist (as a last-ditch option). I’m not sure as to whether it’s even possible to search a string while also searching other values.

    In addition, the search has to work if any of the values are left blank.

    Any ideas, options, or advice?

    Thanks.

  • The topic ‘Is it possible to create a custom search function that does this?’ is closed to new replies.