Skip Navigation

[Resolved] Views is repeating a replace (from another plugin)

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

Problem:

I use SEO Smart Links (https://nl.wordpress.org/plugins/seo-automatic-links/), which replaces (on the fly) keywords in a post with a link. In this plugin you attach keywords to internal urls and internal links are created automatically. This is in favor of SEO.

Normaly this plugin only replaces one occurance of a keyword (screenshot 1). This number is adjustbale, but I have set it to 1. With Views enabled the replace function is repeated and replaces a second occurance of this keyword (screenshot 2). This is not wanted. When I set the adjustable number too 2, 4 keywords are replaced (instead of 2).

How can I make Views not do this?

Solution:

It seems that filter from "seo-automatic-links" plugin have take effect on the content twice, and I have done below modification in your website:
1) Activate Views plugin
2) Edit the content template "Inhoudssjabloon voor blog berichten"
https://drogespieren.nl/wp-admin/admin.php?page=ct-editor&ct_id=41957

Change the codes from:

[wpv-post-body view_template="None"]

To:

[wpv-post-body view_template="None" suppress_filters="true"]

Please test again check if it is fixed or not,

Relevant Documentation:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body

suppress_filters (opt):

'true' | 'false' (default)

If suppress_filters=’true’, all third party (non WordPress) filters hooked into the_content filter will be removed, when retrieving the post body.

This support ticket is created 6 years, 8 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
- 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)

This topic contains 6 replies, has 2 voices.

Last updated by martijnH 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#621060
ds-screenshot-2.jpg
ds-screenshot-1.jpg

I use SEO Smart Links (hidden link), which replaces (on the fly) keywords in a post with a link. In this plugin you attach keywords to internal urls and internal links are created automatically. This is in favor of SEO.

Normaly this plugin only replaces one occurance of a keyword (screenshot 1). This number is adjustbale, but I have set it to 1. With Views enabled the replace function is repeated and replaces a second occurance of this keyword (screenshot 2). This is not wanted. When I set the adjustable number too 2, 4 keywords are replaced (instead of 2).

How can I make Views not do this?

Thanks!

#621219

Hi,

Since it is a compatibility problem, and I am not familiar with the plugin "seo-automatic-links", please provide detail steps to duplicate same problem, I need to test and debug this problem in my localhost

And I have tried the credentials you provided, it does not work, the login URL "cmslogin" redirects me to the home URL:
hidden link
Please check it and point out where I can see the problem you mentioned above.

#621244

Hi,

Thanks for your response. Strange /cmslgin is not working for you. I switched it back to hidden link.

You can duplicate the problem on hidden link. With views turned on the word "krachttraining" is linked twice (also see my screenshot). But in the plugin settings of SEO smart link (CMS > Seo Smart Links > Options) the setting "Maximum Same Keyword" is "1" which means a keyword may only be linked once on a page.

When Views plugin is turned off, the word "krachttraining" is linked once as it should be (see screenshot). You can try this out.

Thanks for your help!

#621257
seo.JPG

Thanks for the details, I can see the problem in your website, but I tried same post content and same keyword "krachttraining" in my localhost(Fresh wordpress installation + The latest version of Toolset Views plugin + SEO Smart Links plugin), there isn't similar problem, there is only one keyword "krachttraining" with the link, see screenshot: seo.jpg.

In case there is any other compatibility problem, please check these in your website:
1) deactivate other plugins(except Views plugin and SEO Smart Links plugin) and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, I need to test and debug it in my localhost, thanks
3) IF the problem is fixed, please try to locate the problem plugin/theme, and provide the downloadable URL for it.

#621281
#621294

Thanks for the details, I can download the file, will feedback if there is anything found

#621297

I can duplicate same problem in my localhost, it seems that filter from "seo-automatic-links" plugin have take effect on the content twice, and I have done below modification in your website:
1) Activate Views plugin
2) Edit the content template "Inhoudssjabloon voor blog berichten"
hidden link

Change the codes from:

[wpv-post-body view_template="None"]

To:

[wpv-post-body view_template="None" suppress_filters="true"]

Please test again check if it is fixed or not, more help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body
suppress_filters (opt):
'true' | 'false' (default)
If suppress_filters=’true’, all third party (non WordPress) filters hooked into the_content filter will be removed, when retrieving the post body.

#621312

Solved. Thanks! Really appreciate the great support you deliver!