Skip Navigation

[Resolved] Noautop still adds paragraphs

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.

Our next available supporter will start replying to tickets in about 6.74 hours from now. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 1 year, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#2613823

I have the following code wrapped in noautop but it still adds the <p>
You can see it here hidden link
Under the heading Video(s):
When you look at the source you'll see a <p> added which creates a space between the following two lines:
MORDAX Workout Summary
[space is created here]
Watch on Facebook

The code:
<ol class="wpv-loop js-wpv-loop">
<wpv-loop>

  • [wpv-noautop]
    [toolset_access role="Administrator,Guest"]
    [wpv-conditional if="( '[wpv-post-field name='wpcf-video-public' item='@workout-session-video.child']' ne '' )"]
    [wpv-conditional if="( '[wpv-post-taxonomy type='video-access' format='name' item='@workout-session-video.child']' eq 'member' )"]<i class="bi bi-lock-fill" style="color:grey;">[/wpv-conditional][fvplayer id="[wpv-post-field name='wpcf-video-public' item='@workout-session-video.child']" width="100%" height="100%" lightbox="true;text" caption="[wpv-post-title item='@workout-session-video.child']"]
    [/wpv-conditional]
    [wpv-conditional if="( '[wpv-post-field name='wpcf-video-public' item='@workout-session-video.child']' eq '' )"]
    [wpv-conditional if="( '[wpv-post-taxonomy type='video-access' format='name' item='@workout-session-video.child']' eq 'member' )"]<i class="bi bi-lock-fill" style="color:grey;">[/wpv-conditional][fvplayer id="[wpv-post-field name='wpcf-video-member' item='@workout-session-video.child']" width="100%" height="100%" popup="1" startend="00:00:00-00:00:45" lightbox="true;text" caption="[wpv-post-title item='@workout-session-video.child']"]
    [/wpv-conditional]
    [wpv-conditional if="( '[wpv-post-field name='wpcf-video-duration-member' item='@workout-session-video.child']' ne '' )"]
    <span>[wpv-post-field name='wpcf-video-duration-member' item='@workout-session-video.child']</span>
    [/wpv-conditional]
    [/toolset_access]
    [toolset_access role="Site Registered User"]
    [wpv-conditional if="( '[wpv-post-taxonomy type='video-access' format='name' item='@workout-session-video.child']' eq 'member' )"]<i class="bi bi-lock-fill" style="color:grey;">[/wpv-conditional][fvplayer id="[wpv-post-field name='wpcf-video-user' item='@workout-session-video.child']" width="100%" height="100%" popup="2" startend="00:00:00-00:01:30" lightbox="true;text" caption="[wpv-post-title item="@workout-session-video.child"]"]
    [/toolset_access]
    [toolset_access role="Site Paying Member"]
    [fvplayer id="[wpv-post-field name='wpcf-video-member' item='@workout-session-video.child']" width="100%" height="100%" lightbox="true;text" caption="[wpv-post-title item="@workout-session-video.child"]"][wpv-conditional if="( '[wpv-post-taxonomy type='video-access' format='name' item='@workout-session-video.child']' eq 'member' )"][/wpv-conditional]
    [/toolset_access][wpv-conditional if="( '[wpv-post-field name='wpcf-facebook-video' item='@workout-session-video.child']' neq '' )"]Watch on Facebook[/wpv-conditional]
    [/wpv-noautop]
  • </wpv-loop>
    </ol>

    #2614147

    Hello,

    How do you setup above post view? Are you using Blocks editor to setup the view block?
    If it is, please try to put those shortcodes you mentioned above into a WordPress built-in shortcode block, and test again
    hidden link

    #2614171

    Yes, that is the case, I now added a shortcode at the top and the ending shortcode at the bottom. It changed nothing.

    #2615227

    Please try to add a blank space after you custom shortcode [fvplayer ...], and test again, for example:

    [fvplayer ...] 
    

    It works fine in below sandbox website:
    Login URL: hidden link
    Post view:
    hidden link
    Frontend result:
    hidden link