Support » Plugin: Raw HTML » Custom Field

  • Resolved Mardie

    (@mardie)


    Is there a way to control the “Disable automatic paragraphs” via custom fields? I’m working on post creation via gravity forms and I can only add custom fields on it. Is there a custom field for this?

    If not maybe just can we have a settings to enable the “Disable automatic paragraphs” by default site-wide? Then on individual pages/post we can manually uncheck it like what the plugin has now.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    Those settings are stored in the _rawhtml_settings custom field. By default, WordPress automatically hides all custom fields that have an underscore prefix, so you might not see this field in the post editor.

    The field contains a list of four numbers (one for each checkbox). For example: 1,0,1,1. I believe you could enable the “Disable automatic paragraphs” option by setting this custom field to 1,0,0,0.

    In the past it was possible to configure the default Raw HTML settings for new posts/pages in the “Screen Options” panel. However, I think that might no longer be an option if you’re using the new post editor.

    Thanks. I needed it in another plugin for post creation.

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