Skip Navigation

[Resolved] Not regular export of paragraph and linebreak in nested views

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 4 months ago.

Assisted by: Waqar.

Author
Posts
#2628087

I'm having a nested view in a taxonomy view here.
hidden link

You'll notice a different way between the first and the following taxonomy terms in <p> and <br>.

I've looked around and can't find the workaround.

Main loop

<ul class="wpv-loop js-wpv-loop">
<wpv-loop>

  • [wpv-post-body view_template="loop-item-in-etablissements-types"]
  • </wpv-loop>

    content
    [wpv-conditional if="( '[wpv-taxonomy-post-count]' gt '1' )"][types termmeta='pluriel'][/types] ([wpv-taxonomy-post-count]) [wpv-view name="etablissements-par-types"][/wpv-conditional]
    [wpv-conditional if="( '[wpv-taxonomy-post-count]' eq '1' )"][wpv-taxonomy-title] ([wpv-taxonomy-post-count]) [wpv-view name="etablissements-par-types"][/wpv-conditional]

    Internal loop name="etablissements-par-types"

    <ul class="wpv-loop js-wpv-loop">
    <wpv-loop>

  • [wpv-post-body view_template="loop-item-in-etablissements-par-types"]
  • </wpv-loop>

    content
    [wpv-post-link]

    Hope you could help.
    Tx

    #2628629

    Hi,

    Thank you for contacting us and I'd be happy to assist.

    Looks like a paragraph tag is being added around all the results from the parent views output, except for the first one.

    To avoid any extra formatting and content filtering, you can include the suppress_filters="true" attribute in both the 'wpv-post-body' shortcodes:
    ( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body )

    For example:

    
    [wpv-post-body view_template="template-name" suppress_filters="true"]
    
    

    In case the extra spacing is still there, you can include the following custom CSS code in any one of the views:

    
    ul.wpv-loop.js-wpv-loop > li > p:first-of-type {
        margin-bottom: 0;
    }
    
    

    regards,
    Waqar

    #2628701

    Thanks, it solves my issue.