Copy Fields to another field group

Support MB Builder Copy Fields to another field group

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #39259
    DragosDragos
    Participant

    Hi. Can i use a field to another field group? For example I have field group called car field. then i have another group called house field. both field group has price field. i want to use only one price field for those 2 field group instead of creating 2 price field for each field group.

    #39263
    DragosDragos
    Participant

    And also, i transferred my custom field to custom table using this guide https://metabox.io/move-custom-fields-data-to-custom-tables/ . It works fine, but now when i save a an item from my post type, it saves like this for media a:1:{i:0;i:5874;} before it saves just the id "5874" on wp_postmeta. and for multiple select field it saves like this a:1:{i:0;i:Retail;}.

    Im using WPGridfilter as a card and for filtering. I can query the data from a custom table but the filter items is not working correctly

    #39272
    PeterPeter
    Moderator

    Hello Dragos,

    Thanks for reaching out.

    1. It is not possible to use one field in two field groups. One field can be registered under one field group (meta box) only.

    2. Which media field type you are using? If it has the setting 'multiple' => true in the default field settings, it is expected result to save the array value (serialized) to the database. You can test with the field single_image to see how it works.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.