Custom Fields
Re-Envisioned
Support General include clonable meta-content in search

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 3 years, 9 months ago.

  • Creator
    Topic
  • #1552

    saulcozens
    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

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #1553

    Anh 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 1 replies (of 1 total)

The topic ‘include clonable meta-content in search’ is closed to new replies.