I update the types plug-in from a free to use old version to a bought new version
Suddenly the plugIn adds a paragraph into the html syntax.
I added pictures to show (one shows the normal structure with two spans, the other one shows the paragraph version).
There was patch in earlier threads, but I cannot download it anymore.
My clients uses a custom theme, in which custom fields are used.
I will include one of the template php files at the bottom that call the custom field named short_text hidden link is one example where the custom field is called ( I attached a screenshot which shows where to look for the code its outputting)
Also, I added how the custom field was set up. Sorry, it is in German.
From looking into the page's source code, I noticed that the text from the multi-line type custom field includes the starting paragraph tag but not the closing one. That is happening because the field's output is being trimmed down using the "substr" function.
alright, I tested it and it works. But I don't understand how suddenly this happens and when I have to go through and fix every php WordPress file (because there are many) this isn't a real fix for the issue.
Any ideas how to fix it for the complete site?
Thanks!
Anika
You'll find code online ( ref: hidden link ), to disable the automatic paragraphs insertion globally, but, I personally do not recommend this solution. This can also remove the paragraphs where you may need/expect them.
The change in the code that I shared in my last message, will only affect the targeted locations, though it would mean making the change in each template file where you've used a similar code.
thanks you. I resolved it with by adding it to the locations.
I wanted to let you know however, when this issue appeared the first time, when I replace the very old types version (version number 1. something) with the current, bought, version.
Wordpress ist up to date as well as the servers php version.