• Resolved chazzer1955

    (@chazzer1955)


    When using a page builder for content, it is possible to insert the shortcode into the page builder layout for the same page. The Gutenberg content will be pulled into the page builder content on the same page. This means that a user can create/edit Gutenberg blocks to the rendered by the page builder, without touching the page builder itself.
    e.g. Say a gallery is created in Gutenberg then the gallery will display in the page builder content. The gallery can be easily edited in Gutenberg without opening the page builder.

    However, if that page is the WordPress home page, then the content will not display if inserted into a page builder on the same page. This would be a useful fix, if possible.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Paul Ryan

    (@figureone)

    Not sure I follow. Maybe walk me through the steps needed to get a vanilla WordPress site into the state you’re thinking? Then I can try testing it on a development machine to see if we can support it.

    Thread Starter chazzer1955

    (@chazzer1955)

    I am using Oxygen Builder to create page content.
    I found that I can insert your shortcode into the Oxygen page content and reference itself (same page slug or ID). And if I have some Gutenberg blocks in the page then those are inserted fine.
    However, when that page is set to the home page, the content does not render at all, either inside Oxygen or in the rendered page.
    I can, however, insert the shortcode into another page and reference the home page by slug or ID, and it works fine.

    • This reply was modified 4 years, 7 months ago by chazzer1955.
    • This reply was modified 4 years, 7 months ago by chazzer1955.
    • This reply was modified 4 years, 7 months ago by chazzer1955.
    Plugin Author Paul Ryan

    (@figureone)

    I don’t think this is possible, because it would cause an infinite loop. When WordPress starts to render page A, it hits an Insert Pages shortcode also for page A, so then it starts to render page A again, which also includes the shortcode for page A, etc. So it goes on endlessly until the server runs out of memory.

    So the plugin has detection for this, and just doesn’t allow inserting a page into itself.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot insert to self when is home page’ is closed to new replies.