Html in description

  • Author
    Posts
  • Yliya 14

    Hello. Please tell me how you can include html in the “description” field. I mean the field, which is required, and is set initially in the plugin. I saw the code, but it didn’t help.

    add_filter(
    ‘hivepress/v1/models/listing’,
    function( $model ) {
    $model[‘fields’][‘description’][‘html’] = true;
    return $model;
    },
    1000
    );

    Maybe I’m not looking right, I don’t understand English well

    ihordeveloper

    This code should work fine, it’ll turn a plain text field into a simple editor with formatting options. Please make sure that you added it via the Code Snippets plugin or to the child theme’s functions.php file.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.

Black Friday is coming! Get 25% off any purchase with FRIDAY2020 coupon code until Friday, November 27.