Custom Fields
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
  • #1552


    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.


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

    Anh Tran

    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:

    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.