WordPress.org

Forums

Advance WP Query Search Filter
Searching textarea custom fields (5 posts)

  1. jordanwarner
    Member
    Posted 2 years ago #

    Hi again, I think I've almost got everything sorted out. Really appreciate the help and support.

    One other thing I'm stumped on - I have a few custom fields that are simple textareas (wysiwyg areas where the client can write a description of an item in the database). I am trying to set the search up to look in those custom fields for any keyword matches. The dropdown/checkbox/radio options don't work for this, since I don't know in advance what the client will be writing in each description - it could be anything. So I need the search to simply look for keyword matches within those fields.

    Is this possible? I know I can add a string search, but that seems to only look through wordpress post content/titles, not my custom fields.

    Thanks again!

    http://wordpress.org/extend/plugins/advance-wp-query-search-filter/

  2. TC.K
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, you are right, string search won't search through custom field.
    There are two ways that I can think of to solve this problem.

    1. Easy way
    Add those meta field value in your post content.

    2. Complicated way
    Add text field to meta field input. This need to customize the plugin. However, only one text field for one meta field is allowed.

  3. jordanwarner
    Member
    Posted 2 years ago #

    Appreciate the help. When you say "add those meta field values in your post content", do you simply mean to remove them from custom fields and have them be in the normal wordpress "the_content" area? Or is there another way to add the meta field values to the post itself but keep them as custom fields?

    Thanks!

  4. TC.K
    Member
    Plugin Author

    Posted 2 years ago #

    It depends, you can keep the meta field value and in the mean time copy it to your post content. This is the easiest way.

    is there another way to add the meta field values to the post itself but keep them as custom fields?

    Probably Yes, I have no idea how it can be done though.

  5. jordanwarner
    Member
    Posted 2 years ago #

    Okay, thanks again for the help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advance WP Query Search Filter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.