• Resolved enqis

    (@enqis)


    Hello
    I have a question. I made some custom field form my posts using Types. Then i look into my database and found something like this:
    meta_key -> wpcf-test-field
    meta_value -> a:1:{s:64:”wpcf-fields-checkboxes-option-9197ba34957f1028fa65cbdb1e3be28e-1″;a:1:{i:0;s:1:”1″;}}

    Is there a way to modify meta_value saved for specific option ?
    Thanks for help.

    https://ww.wp.xz.cn/plugins/types/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Dear enqis

    What do you need to achieve?

    You can use filter like this:

    http://iworks.pl/firma/klienci/o/onTheGoSystem/types/docs/filters/wpcf_fields_type_type_value_save.html

    But what you really need to do?

    Cheers,
    Marcin

    Thread Starter enqis

    (@enqis)

    I’m trying to combine Types and Ultimate WP Query Search Filter. However i have noticed that wordpress saves checkboxes just like i posted above and it is not about Types.
    I need to achive that i could filter like:
    Select * from wp_postmeta where meta_value in (‘red’,’green’)
    where red,green and blue are custom fields for posts at my page.
    I rather need to contact with WPQSF than with you.
    Thanks for help.
    Cheers

    Dear enqis

    Better is use “radio” type field. Then you can filter using WP Meta Query or using our Views plugin (this is paid plugin) to create view with that filter.

    Cheers,
    Marcin

    Thread Starter enqis

    (@enqis)

    I can’t use radio buttons cause i need to let users to check multiple fields like:
    red, green out of red green blue and then via front of our page search for red posts, green posts and red&green posts.

    That not good.

    We do not handle sorting/filtering with checkboxes at all. ;(

    Marcin

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Database meta_value’ is closed to new replies.