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>
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
Yes, that is the case, I now added a shortcode at the top and the ending shortcode at the bottom. It changed nothing.
Please try to add a blank space after you custom shortcode [fvplayer ...], and test again, for example:
It works fine in below sandbox website:
Login URL: hidden link
Post view:
hidden link
Frontend result:
hidden link