New field type "Custom HTML" won't save ID

Support MB Custom Post Type New field type "Custom HTML" won't save IDResolved

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #43406
    signups@moodesignsllc.com[email protected]
    Participant

    I'm adding a new "Custom HTML" field. It doesn't create an ID. When I type one in, it gets removed when I click "update". Is that normal behavior? Screenshot: https://i.imgur.com/lVR1yhn.png

    #43414
    PeterPeter
    Moderator

    Hello,

    The field custom HTML does not need the field ID. It used to display some extra content in the meta box. I will inform the development team to remove the field ID of this field.

    #43425
    signups@moodesignsllc.com[email protected]
    Participant

    Ok, thank you. I might be misunderstanding the use case for that field type.

    Here's what I'm trying to do: I would like a field where I can store html code. (Specifically, it's the embed code from Termageddon for a privacy policy.) Then I want to pull that code into a Bricks code module to display the policy on the front end.

    I tried using a text field, but it stripped the code. A text area field seems to save the code. But on the front end, I just get "no code found" and nothing shows up when I inspect.

    Can you point me in the right direction? Links to some screenshots. Thank you!

    https://i.imgur.com/Lb1zlVH.png
    https://i.imgur.com/cpHuMLU.png

    #43430
    PeterPeter
    Moderator

    Hello,

    If the code is saved properly, you should contact Bricks support if it is not outputted in the front end.

    #43431
    signups@moodesignsllc.com[email protected]
    Participant

    It seemed to save properly. Before I contact Bricks, can you confirm I'm using the appropriate field type for this, or can you suggest a better way?

    #43444
    PeterPeter
    Moderator

    Yes, textarea is a proper field to add the HTML code. You can also take a look at the sanitization and bypassing it https://docs.metabox.io/sanitization/

    #43446
    signups@moodesignsllc.com[email protected]
    Participant

    Ok, thank you. I'll talk to Bricks.

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