WordPress.org

Ready to get started?Download WordPress

Forums

Advance WP Query Search Filter
single checkbox verification doesn't work (4 posts)

  1. buseca
    Member
    Posted 8 months ago #

    I'm using some filters and it's ok, I just have a problem when i use a single checkbox:
    I created a custom filed which is a checkbox with value "NEW"; i need it to flag a post with a particular feature and I want the serach form to search the posts flagged with it.

    I added a new "meta filed" , I chosed the "new" metakey, selected "IN" as compare operator, selected checkbox and wrote one single option in the "drop down option" (I wrote NEW).
    But the filter doesn't work.

    Is it correct the process?
    tnx

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

  2. TC.K
    Member
    Plugin Author

    Posted 8 months ago #

    Does your value "NEW" is a single value, not in an array form?
    Try click on the Generate value in the adding meta field pop up window, to see if it generate "NEW" or an serialized array. If it is serialized array, then you have to change your "new" field to make store as single value.

  3. buseca
    Member
    Posted 8 months ago #

    this is what come out generating the value:

    | a:1:{i:0;s:7:"leggero";}

    how i can change my "new" field to make store as single value?

  4. TC.K
    Member
    Plugin Author

    Posted 8 months ago #

    How do you create the "new"field? If you using plugin to do this, then you should try directly using text field or radio button.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags