Support » Fixing WordPress » Custom field data in search results

  • Is it possible at all to have custom field data show in the search results?

    I have a site that makes use of a lot of custom fields and post types, and no matter what I do, or what plugin I use, I cannot get the excerpt, or any content, of these custom fields to appear in the search results.

    Happy to post some code up, but first, is there anything obvious I should be doing?

    Currently trying to get this working using the Relevanssi plugin, if that helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes, it is possible. Use ‘relevanssi_excerpt_content’ filter to add the custom field content to the post content.

    I have sorted it now. I found a post with a similar query, and now it is working a treat. Thanks for the reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom field data in search results’ is closed to new replies.