• Resolved allymosher

    (@allytaylor08)


    Hi there,

    This plugin has been SO useful, thank you so much! Just one thing – when users write multiple paragraphs in the Rich Text fields, the paragraph breaks disappear in profile view (using shortcodes).

    I’m guessing this is because WordPress doesn’t really use paragraph tags – lists etc all work fine, it’s just paragraphs. Is there anything we can do to get the paragraph breaks copying through? Something in the shortcode? Happy to use custom code if that helps.

    Thanks for your help!

Viewing 1 replies (of 1 total)
  • Plugin Author Khaled

    (@khaledsaikat)

    Hello,

    Thanks for using the plugin. Please try the dev version (https://downloads.www.ads-software.com/plugin/user-meta.zip) and apply following code to your functions.php

    
    add_filter('user_meta_field_config', function($field) {
        if (in_array($field['field_type'], ['description', 'rich_text'])) {
            $field['field_options'] = ['wpautop' => false];
        }
        
        return $field;
    });
    

    Best regards
    Khaled

Viewing 1 replies (of 1 total)
  • The topic ‘Paragraph breaks disappear in profile’ is closed to new replies.