Skip Navigation

[Resolved] For Nigel – Unwanted tags added to view output

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 0 replies, has 1 voice.

Last updated by nicolaS-3 1 month, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2787365
P-BUG.png

Hello Nigel,
I have a classic view output that is perfect. If I add a simple line showing the output from another classic view, like this line
<div>[wpv-view name="bands-applied-to-event-count"]</div>
some extra <p> tags are added in different positions to the original output changing the original layout (see picture). Some <P>s are empty some others are added wrapping other code.
I am not sure if this issue is related to this other ticket,
https://toolset.com/errata/extraneous-p-and-br-tags-added-to-content-template-output-when-designed-with-beaver-builder/
however it seems similar. I don't use Beaver B., I am using the Gutenberg block editor for the page with a classic view (main loop) where I'd like to add the line above, but I can't because of the added <P>s.
The CT Output Mode is set to Manual, but it seems it's still behaving as Auto.
Weird is that the first line of output in the loop is ok the followings get the <p>s ....
Thanks
Regards
Nicola

PS - cannot update WP due to this bug, still waiting
https://toolset.com/forums/topic/urgent-wp-6-6-1-toolset-issues-with-patterns/

#2787471

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

The errata you shared is when you use Beaver Builder.

In order to minize the cause of the issue and to ensure there is no third-party plugin or theme involved.

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference? if no:

Can you please share problem URL where I can see the issue and what view you are using on that page.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2787830

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Unfortunately the password you shared for the user "Hamburger" is not working at this end.

Can you please send me working access details for the user "Hamburger".

I have set the next reply to private which means only you and I have access to it.

#2787865

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've wrappted yoru view's content tempalte output with "wpv-noautop" shortcode as given under:
=> hidden link

[wpv-noautop]
<tr>
    <td width="13%" align="center" style="background-image: url([wpv-post-featured-image size='large' output='url']);height:250px;">
      <div class="contenitore">
      	<div class="calendar-sopra">[types field='event-date' style='text' format='l'][/types]<div style="font-size:36px; line-height:38px;">[types field='event-date' style='text' format='j'][/types]</div></div>
      </div>
      <div class="contenitore">
      	<div class="calendar-sotto">[types field='event-date' style='text' format='F'][/types]<div style="font-size:12px; line-height:14px;">[types field='event-date' style='text' format='Y'][/types]</div></div></div><span style="font-size:16px;background-color:#e5e5e5;text-align:center;padding: 0 5px 0 5px;">ore [types field='event-date' style='text' format='g:i'][/types]</span></td>
    <td width="57%" align="center">
      <div style="text-transform: uppercase;font-size:16px;font-weight:700;height:50px;margin-top:3%;text-align:center;">
    [wpv-conditional if="( $(wpcf-requested-bands) eq '0' )"]<img src="<em><u>hidden link</u></em>" alt="Evento chiuso" width="30" height="30">[types field='event-organizer'][/types][/wpv-conditional]
    [wpv-conditional if="( $(wpcf-requested-bands) ne '0' )"]<img src="<em><u>hidden link</u></em>" alt="Evento programmato" width="30" height="30">[wpv-post-title item="@pub-event.parent"][/wpv-conditional]</div>
      <div class="titolo">[wpv-post-link]</div>
        <div>[wpv-view name="bands-applied-to-event-count"]</div>
    </td>
    <td width="30%" align="center"><a href="[wpv-post-url]">VEDI SCHEDA</a>[wpv-conditional if="( '[wpv-post-author]' eq '[wpv-current-user info='id']' ) AND ( $(wpcf-requested-bands) eq '0' )"]&nbsp;|&nbsp;[toolset-edit-post-link content_template_slug='ct-for-editing-events' target='self']MODIFICA[/toolset-edit-post-link] | [cred-delete-post action='trash' onsuccess='self']ELIMINA[/cred-delete-post] <div style="color:red;font-size:12px;text-align:center;margin-top:5%;">ATTENZIONE !!<br>Scegliendo ELIMINA l'evento verrà eliminato senza ulteriore conferma.</div>
[/wpv-conditional]
      [wpv-conditional if="( '[wpv-post-author]' eq '[wpv-current-user]' ) AND ( $(wpcf-requested-bands) gt '0' )"]
      | [toolset-edit-post-link content_template_slug='ct-for-editing-events-pub_manager' target='self']MODIFICA[/toolset-edit-post-link] | [cred-delete-post action='trash' onsuccess='self']ELIMINA[/cred-delete-post] <div style="color:red;font-size:12px;text-align:center;margin-top:5%;">ATTENZIONE !!<br>Scegliendo ELIMINA l'evento verrà eliminato senza ulteriore conferma.</div>
[/wpv-conditional]
  </td> 
  </tr>
[/wpv-noautop]

Can you pleae confirm it works as expected now:
- hidden link

More info:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-noautop

#2788121

Thanks Minesh, great support !
Regards
Nicola