Skip Navigation

[Resolved] Pagination creates p-tags for no reason

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

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

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 7 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#577292
Schermafbeelding 2017-10-09 om 14.10.21.png
Schermafbeelding 2017-10-09 om 14.09.56.png
Schermafbeelding 2017-10-09 om 14.09.33.png

Hi,

on my website a custom post type Cases. On the homepage, 6 cases are listed up with pagination on the bottom.
Now, when I use this pagination, everuything works fine. The only problem is that p-tags are creates where it is not defined in the Views code...

The p-tags are created when I use the pagination. When I reload the page, the p-tags are not there yet. Only when I start using the pagination, those are created.

This is the Loop Output code:

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<div class="row themas-home">
          <wpv-loop>
            <div class="col-md-4 col-sm-6 case-op-homepagina">
              <div class="case-home">
              	<a href="[wpv-post-url]">[types field="afbeelding-homepage" size="full" align="none"][/types]</a>
              <div class="case-korte-inhoud">
                <h2><a href="[wpv-post-url]">[trim length="49"][wpv-post-title][/trim]</a></h2>
                <p>[trim length="100"][types field="tekst-kort"][/types][/trim]</p>
                <p class="lees-meer"><a meer" href="[wpv-post-url]">[wpml-string context="wpv-views"]Lees meer >[/wpml-string]</a></p>
              </div>
              </div>
            </div>
          </wpv-loop>
     
	</div>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"][/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

This is the Filter code:

[wpv-filter-start hide="false"]
[wpv-filter-controls][wpv-pager-nav-links output="bootstrap"][/wpv-filter-controls]
[wpv-filter-end]

In the screenshots, you see the situation before pagination and after.

Is there a way to solve this issue?

Thanks in advance!

Kind regards,
Jef M.

#577534

Dear Jef,

As you can see, there isn't HTML <p> tag in the views code, it might be compatibility problem of other plugins/theme, but you can use content template to force it do not add HTML <p> tag, for example, you can create a content template, enable the option "Manual paragraphs", then put the content template inside the Views's loop.

See our document:
Using a Content Template in a View loop
https://toolset.com/documentation/user-guides/using-a-view-template-in-a-view-layout/