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.
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/