Hello.
I created a PHP script for the site, which pulls out the database and forms several DIV elements (quite a lot) that follow one after another. This function works correctly, everything is tested.(without wordpress)
To insert code into wordpress, I use the “Insert PHP” plugin.
The site uses “Page Builder”.
As soon as I insert into the article, he somehow intervenes in the work and breaks the layout.
I looked at the inspector.
Everything should fall inside the
<div class = "article__content"> </div>block, but only the first two blocks generated by the program get there, the rest is simply inserted into the
<article id = "post-xxx">section
and the last two even in
<div id = "primary" class = "content-area container">, then most of the blocks go to the wrong place,
I don’t understand anything. I tried to add it through a homemade shortcode, the result is the same. What is this glitch?
Hi Taras
Thanks for posting your question.
This sounds quite similar to Thread: Inserting custom shortcode in the page breaks layout. Please, let me know how it goes inserting the shortcode into the Classic Editor.