Home>Support>How to insert PHP code into wordpress (Page Builder)?

How to insert PHP code into wordpress (Page Builder)?

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?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    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.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More