Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter bandit99

    (@bandit99)

    OK, thanks for your help and problem resolution.

    Thread Starter bandit99

    (@bandit99)

    Yep, that’s nailed it!

    Thanks very much; at least that’s a workaround. Not quite as convenient as using Page Title, but certainly acceptable.

    Perhaps in a future update, there might be the possibility of using Page Title.

    Thread Starter bandit99

    (@bandit99)

    OK, I think I’ve made progress on this bug…

    In my particular setup (& it’s a site with many plugins etc.) I can at least reproduce the problem.

    Create a Page in WP – we’ll call it ‘Daughter Page’ – It has a page URL of domain/daughter-page
    (I’m making the visibility private because I’m testing on a live site, but I don’t think it matters if Private or Public)
    Create a Product in WooCommerce – we’ll also call it ‘Daughter Page’ – It has a permalink of domain/product/daughter-page
    (I’m setting catalog visibility to Hidden again because it’s a live site. But I don’t think visibility matters)
    Create a ‘Mother page’ (call it Mother Page, URL domain/mother-page)) and include an Insert Pages code [insert page=’daughter-page’ display-‘content’]
    (I set visibility to Private, but again I don’t think this matters)

    View (with admin rights because the pages are private) domain/mother-page – the Daughter Page doesn’t show…

    Edit the product permalink of product ‘Daughter Page’ to domain/daughter-page-2

    View again domain/mother-page – the Daughter Page now shows.

    So, the error/bug seems to be caused by having a WP Page & WC Product of the same name.

    OK, it seems easy to say make sure the names are different, but we have thousands of products with Page & Product named the same & life would get very confusing if we started naming the pages/products differently!

    Hopefully, the above explains how I can at least reproduce the problem and helps track down the cause!

    Thanks

    • This reply was modified 2 years, 3 months ago by bandit99.
    Thread Starter bandit99

    (@bandit99)

    Thanks Paul. I’ll try to reproduce on a backup staging site & then see if I can start disabling things etc.

    Also, I’ll check the page HTML & check what’s there… instead of what we can see.

    Thread Starter bandit99

    (@bandit99)

    Generally speaking, the pages (both main & inserted) are Private when I’m creating/editing. I’m logged in as Admin, so everything should be good. I can view both pages without a problem – just not the inserted page when viewing the main page ??

    I have previously tried changing the ‘main page’ & ‘inserted page’ to Public visibility and recreating the insert code, but the result is the same.

    Yes, there are entries in wp_posts.post_content (for both the page and the product – it’s a WooCommerce site).

    Strangely, some (probably most) pages insert without a problem. I’ve only just started using the plugin & the first page I created & tried to insert didn’t show. I tried a few previously created pages, and they worked fine. I created a new page and replicated settings from the page that didn’t show & copied/pasted the page content (WP editor) – I could insert that page without a problem. However, the very next page I created wouldn’t show.

    Thread Starter bandit99

    (@bandit99)

    No.

    The page (that I am trying to insert) is built with the standard WP page editor. I have a source ‘template’ page from which text is copied (within WP editor) & pasted into a newly created page. The new page is then edited slightly, and it’s that page that I am trying to insert into a third page.

    That’s the way I generally create pages, and some pages created that way show correctly when inserted via your Insert Pages plugin and some pages just fail to show…

    I just cannot track down the reason or what is different between those that work & those that don’t ??

Viewing 6 replies - 1 through 6 (of 6 total)