include clonable meta-content in search

Support General include clonable meta-content in search

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1552
    saulcozenssaulcozens
    Participant

    Has anyone done any work on how to include Metabox fields in WP searches.

    Most advice on including meta-data in search is to extend the WP SQL query, but that won't work too well when the data is serialized in the database.

    Any advice would be appreciated.

    saul

    #1553
    Anh TranAnh Tran
    Keymaster

    If the data is serialized (cloned fields), then there's no easy way to search with SQL.

    But if you want to search normal meta data, not serialized, you can do this by following this tutorial:

    http://www.deluxeblogtips.com/2012/04/search-all-custom-fields.html

    Another solution is using the plugin SearchWP. I haven't tested it yet, but from what it says, it can handle serialized and JSON data in the custom fields.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘include clonable meta-content in search’ is closed to new replies.