Skip Navigation

[Resolved] Unwanted tags in archive loops

This thread is resolved. Here is a description of the problem and solution.

Problem: Extra paragraph tags are being added to my WordPress Archive page.

Solution: The fix for this issue will be released in the next plugin updates. For now, you can install the patch as explained here:
https://toolset.com/forums/topic/manual-paragraphs-being-ignored-on-home-page/#post-1501599

This support ticket is created 4 years, 10 months 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by anastasiosD 4 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1505349

Hi,

After the latest toolset upgrade I have found that there are numerous unwanted <p> tags in the content of archive loops.

Example:
hidden link

I did a little digging around and found that in the file wp-content/plugins/wp-views/embedded/inc/wpv-archive-loop.php you changed the way you process the output from:

$wpa_output = apply_filters( 'the_content', $wpa_output );

to:

$wpa_output = apply_filters( 'toolset_the_content_basic_formatting', $wpa_output );

which applies many filters including the wpautop, even though i have in my functions.php the remove_filter( 'the_content', 'wpautop' );

When i disable the line 43 in wp-content/plugins/wp-views/vendor/toolset/toolset-common/inc/autoloaded/basic_formatting.php:

// array( 'callback' => 'wpautop', 'priority' => 10 ),

the issue is fixed.

I also tried using [wpv-noautop] in the archive loop code but had no effect.

Is there a better and more permanent way to fix this?

Thank you!

#1505671

Hi, there is currently an issue with paragraph tags in wordpress archives. Can you check the solution with patch in this ticket: https://toolset.com/forums/topic/manual-paragraphs-being-ignored-on-home-page/#post-1501599

Let me know if the patch does not solve the problem.

#1512655

My issue is resolved now. Thank you!