• Resolved idee

    (@idee)


    Hi WP Lister Team,

    inside our products, we use a custom meta field (WYSIWYG Editor field).

    WP Lister does add <br> add the end of nearly each line. This is in the ebay prevoew, and when uploading the product to ebay. The <br> are always there.
    In the the_content (); field its fine, only the custom meta fields have that problem

    We have in the HTML things happen like:

    <h3 class="whatever">Text</h3>
    <br>
    <br>
    <br>

    Or:

    <ul class="whatever"><br>
     	<li>Text</li><br>
     	<li>Text</li><br>
    </ul>

    ANy hints would be nice, as we do not know where to look at.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support WP Lab Support

    (@wp-lab-support)

    Hey @idee

    Thanks for contacting support.

    So you are looking to remove the <br> tags when listing to eBay, is that right?

    Kind regards,
    John

    Thread Starter idee

    (@idee)

    Hi,
    yes, that is correct. ANd already in the Preview.

    These <br> Tags do get added automatically.
    And only in our custom fields we added to our woocommerce products and display in the Ebay Template with [[meta_custom-meta-field-name]].

    • This reply was modified 5 years, 1 month ago by idee.
    • This reply was modified 5 years, 1 month ago by idee.
    Thread Starter idee

    (@idee)

    Hello,
    any news to this question?
    Thank you

    Plugin Support WP Lab Support

    (@wp-lab-support)

    Hey @idee

    Thank you for your patience.

    That is intentional and there’s a comment in the code that says:

    nl2br() is required for WYSIWYG fields by Advanced Custom Field plugin (and probably others)

    … nl2br is function that converts newline into the <br> tags that you are talking about. We just added a filter that will allow you to disable that if you’re not using ACF so please create a ticket here: https://www.wplab.com/request-support/ so we can give you the new filter and the add on plugin to turn the <br> tags off.

    If you could also supply a link to this forum thread in your ticket, that would be helpful as well.

    Kind regards,
    John

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding when using custom_meta fields’ is closed to new replies.