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

    (@figureone)

    Does it start working again if you disable the other plugin? Also, were there any error messages in the web server logs?

    Thread Starter darrell_rushhour

    (@darrell_rushhour)

    I deleted the other plugin then reinstalled Insert Pages and saved permalinks. Still only displays one of the 5 pages that should be inserted.

    here is the link:
    cybearinteractive.com/wataugagroup
    The Contact info at the bottom of the page is an inserted page but there should be content between each of the images above.

    I am not seeing any errors in the cpanel error log.

    Plugin Author Paul Ryan

    (@figureone)

    I think the plugin is working fine; it looks like the pages you are trying to insert don’t exist anymore. On the page you linked to, you can find the markup generated by Insert Pages:

    <div data-post-id="101" class="insert-page insert-page-101 "></div>
    <div data-post-id="101" class="insert-page insert-page-101 "></div>
    ...
    <div data-post-id="101" class="insert-page insert-page-101 "></div>
    ...
    <div data-post-id="102" class="insert-page insert-page-102 "></div>
    ...
    <div data-post-id="103" class="insert-page insert-page-103 "></div>
    ...
    <div data-post-id="69" class="insert-page insert-page-69 ">
      <div class="vc_row wpb_row vc_row-fluid">...</div>
    </div>

    The last one corresponds to Contact Us, which you can verify by going directly to that page:
    https://www.cybearinteractive.com/wataugagroup/?p=69

    The other page IDs don’t work:
    https://www.cybearinteractive.com/wataugagroup/?p=101
    https://www.cybearinteractive.com/wataugagroup/?p=102
    https://www.cybearinteractive.com/wataugagroup/?p=103

    I suggest checking your page IDs, or using page slugs instead.

    Thread Starter darrell_rushhour

    (@darrell_rushhour)

    That doesn’t make sense as the pages clearly exist. When you go to the 404 it gives the menu that links directly to the pages. They all open just fine.

    I made this test page fresh using the plugin tool in the text editor to generate the shortcodes. https://www.cybearinteractive.com/wataugagroup/test/

    The top half of the page should be pulling “content” from two pages inserted. The bottom half below the orange divider is pulling just “title”. As you can see the title is working but not the content.

    I tried saving permalinks as ‘Default’ but that didn’t change anything so I reverted them back to Post-Name. I also double checked the Insert Pages settings and it is set to page slug.

    Plugin Author Paul Ryan

    (@figureone)

    Like I said, check your page IDs; the inserted page markup shows IDs 101, 102, and 103, which don’t exist. Find the page IDs of the pages you’re trying to embed and try putting those in the shortcode like so:
    [insert page="your_page_id" display="content"]

    Thread Starter darrell_rushhour

    (@darrell_rushhour)

    Ok.. I put the page IDs in the shortcode and changed the plugin settings to identify by page IDs. They finally came back.

    I’m still confused as to why the page IDs even changed when they were working. I did not make any new or duplicate pages. I also don’t understand why the plug-in shortcode generator in the text editor would allow me to select pages that that supposedly did not exist, even though they did but it was creating a random page ID.

    The most baffling part was choosing “title” in the shotcode generator did display the page title but choosing “content” did not work. I’m just tying to understand if this is a bug in the plugin or if there is something I did.

    Anyway, my issue is resolved. Thanks for the help.

    Plugin Author Paul Ryan

    (@figureone)

    WordPress won’t let a post have the same slug as another post (it appends -1, -2, etc. to the end of the slug), but it will let a post have the same slug as a page (or an image, or a custom post type, etc.). It’s likely that you have some other content on your site that is sharing the slug for your pages, and Insert Pages is evaluating the slug to one of the other pieces of content (whatever content has IDs 101, 102, 103). That’s my guess. Using IDs is safer, because they are unique. It’s just less user-friendly because you can’t read the shortcode and know immediately what’s embedded (which is why the plugin defaults to slugs).

    Thread Starter darrell_rushhour

    (@darrell_rushhour)

    Hey I noticed something else recently. More of a compatibility quirk.

    I use Visual Composer plugin which gives some custom layout and CSS control on a page by page basis. For the most part Insert Pages pulls over everything just as I built it on the parent page. Column, rows, etc all transfer with the exception of custom padding.

    Notice the Services section on my home page vs the Services page it pulls from.

    https://Cybearinteractive.com/wataugagroup
    Vs
    https://Cybearinteractive.com/wataugagroup/services

    I’ve got a work around for top/bottom padding and in this case I’m don’t need left/right padding. Just wanted to make you aware of the quirk just in case it’s something that could be addressed in future updates.

    Thanks again for a good plugin.

    Plugin Author Paul Ryan

    (@figureone)

    I do see the custom padding inserted as an inline style into the #main element. However, this is higher up in the template hierarchy than the page content, which is why it’s not being included in the inserted page. In your theme, the page content exists in the .post-content element. It looks like this for your theme:

    #main
      .fusion-row
        .content
          #post-36
            ...
            .post-content

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Only inserting one page out of 5 (Was working)’ is closed to new replies.