WordPress.org

Forums

Is it possible to create a custom search function that does this? (1 post)

  1. aclight
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic