Custom Fields
Re-Envisioned
Support MB Blocks Save meta values in database

  • Creator
    Topic
  • #16511
    closemarketing
    Participant

    How can I save the meta values from the gutenberg block as a meta value?

    Is it possible? That would be very nice, becouse you can use it to filter a post type or similar.

    Thanks.

Viewing 2 replies - 11 through 12 (of 12 total)
  • Author
    Replies
  • #17596
    Content Pilot
    Participant

    I second this. If multiple is set to false then it could work in tandem with another flag like post_meta set to true so that the block can save to the db as the block’s ID for the meta_key

    Not totally sure if it is possible but saving to the db as post_meta and rendering on the frontend at the same time would be a game changer. I need blocks for page creating but still use pieces of data on archive pages or search result like phone numbers, emails, etc.

    #17602
    Przemek
    Participant

    I’m not familiar with MB Block internals, but in pure Gutenberg there are just 2 steps: registering post meta in PHP and defining “source: ‘meta’, meta: ‘meta_field_key'” in JS block declaration. I feel that it might be not a big leap in MB code.

Viewing 2 replies - 11 through 12 (of 12 total)
  • You must be logged in to reply to this topic.