I want txetarea to keep paragraphs

Support MB Builder I want txetarea to keep paragraphs

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #48824
    369cycle369cycle
    Participant

    I want txetarea to keep paragraphs

    #48832
    PeterPeter
    Moderator

    Hello,

    You can try to add the <br> or <p> tag to the textarea field to show the linebreaks or paragraph in the frontend.
    Or use the PHP function to add paragraphs to the text

    <?php $value = rwmb_meta( 'field_id' ) ?>
    <?= wpautop( $value ) ?>

    Following the documentation https://docs.metabox.io/fields/textarea/#template-usage

    #48836
    369cycle369cycle
    Participant

    You gave the normal way of writing, but I use MB view..
    I use MB view editor. Many MB view editors do not provide function tags. How should we write them?

    <?php wp_list_pages(); ?> 
    <?php wp_list_cats(); ?> 
    <?php next_post_link(' %link ') ?> 
    <?php previous_post_link('%link') ?> 
    #48837
    369cycle369cycle
    Participant

    I always want to add some existing WordPress function tags, but I don't know how to implement it...
    、<?php edit_post_link(); ?>、

    #48838
    369cycle369cycle
    Participant

    I always want to add some existing WordPress function tags, but I don't know how to implement it...
    <?php edit_post_link(); ?>

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