This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

6 years ago · Last reply by Andrew Misplon 6 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 6 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread