Git Product home page Git Product logo

insert-pages's People

Contributors

alexgstapleton avatar dependabot[bot] avatar figureone avatar gtrout avatar heiglandreas avatar seb33300 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

insert-pages's Issues

Some Issues...

Firstly, the retina icon (to insert shortcode) doesn't display in any of my editors, including the Gutenburg editor. I have to manually type in the code.

Secondly, the pages I include using the shortcode seem to be wrapped in PRE and CODE HTML tags, yet I don't see these tags anywhere in the plugins insert-pages.php file. I need to be able to remove these tags from the template because it's causing it to look awful and causes my browsers horizontal scrollbar to display (since the paragraphs within the inserted page are now overscrolling off my screen).

The alternative to removing these tags would be to use a custom template within the shortcode, but I have no idea what I need to put in this custom template.

So, in conclusion:
1). Can we get the icon to show up in my Gutenburg editor?
2). Can you give me a sample template to use for a custom template, or possibly just tell me how to remove the PRE and CODE tags from within the default template?

Thanks.

Unexpected T_STRING syntax error

Unexpected T_STRING syntax error with the 3.2.8 & 3.2.9 updates, had to backdate to 3.2.7
Current Wordpress install 4.9.1

Unexpected T_STRING error on line 303 of insert-pages.php

302 if ( class_exists( '\Elementor\Post_CSS_File' ) ) {
303 $css_file = new \Elementor\Post_CSS_File( $inserted_page->ID );
304 $css_file->enqueue();
305 }

Adding an id on the inserted page div

Hello,

Can you provide on option to add an id on the div element?
In the same way as the class option.

This could be very useful to create anchor link when using your plugin to create One Page website.

Thanks!

Insert page with content='all' displays footnotes when there are none

Context

I am using the following shortcode to insert in a page, another one that is also available as a standalone page:

[insert page='xxx' display='all']

Note: I'm using display='all' because I want to have both the title and the full contents.

Problem

This used to work just fine, but I recently noticed that at the bottom of the included page, there is a new footnotes section displayed even though as far as I know there are no footnotes in the included page.

image

Generated HTML

<div data-post-id="3704" class="insert-page insert-page-3704 "><h1 class="insert-page-title">
    <!-- SNIP included page's contents -->
<ul class="post-meta">
<li><span class="post-meta-key">footnotes&nbsp;:</span> </li>
</ul>
</div>

I'm not sure when the problem actually started occurring, but quite possibly a few weeks ago when I upgraded to WP 6.3, which introduced footnotes.

Expected behavior

The footnotes bullet should not be shown, when there are no actual footnotes in the included document.

Moreover, the footnotes text is in English, while the WP instance's site language is French; I think this should be translated.

Workaround

Insert 2 shortcodes, one with title, and one with contents.

WordPress V5.7 JQuery

WordPress V5.7 is changing jQuery versions with consequences as there is no backward compatibility. jquery Migrate Helper tells me that Insert Pages, which I use a lot, will have a problem. Is this under review?

/wp-content/plugins/insert-pages/js/wpinsertpages.js
/wp-content/plugins/insert-pages/js/wpinsertpages.js
/wp-content/plugins/insert-pages/js/wpinsertpages.js
/wp-content/plugins/insert-pages/js/wpinsertpages.js
/wp-content/plugins/insert-pages/js/wpinsertpages.js

Todays plugin update caused a fault issue to other pages

I have a post form with Frontier Post-plugin what include post input text-field with native WP text-editor.
Text-field input dissapeared, and choosing test or graphic layout it put the form to non working condition.
After disabling Insert Pages-plugin, all are fuctioning as before.
So something with this new update causes this.

Embed page exceeds content width in mobile

Hi,

I'm using your plugin in combination with "Tabs" block from "Ultimate Addons for Gutenber"

When a post/page is loaded from mobile view inside a tab block, embed content doesn’t respect the content width from the superior block (tabs). I’ve tried also to insert the block inside a Gutenberg “container” block (from Stackable blocks) to play with settings trying to set a max width for the inside blocks (tabs and yours), but nope, still the problem.

Image with the problem: https://i.imgur.com/qB3mUMW.png (Tab with content embedded using your plugin)
How should look: https://i.imgur.com/IcK0Odi.png (Tab with real content, no embedded)

Any way to fix this or to set a max-width parameter for an inserted content?

Adding shortcode in function.php hook

Hello,

Thank you for this plugin.. I want to add the shortcode in a function.php function.. I've tried the do_shortcode() code and it simply does not execute. Is this plugin designed to work this way?

Thanks.
A

Wrong page inserted

Everything was working well, however since update to version 5.8.2 of Wordpress the inserted page is not the right one.
E.g. in the page https://www.trialog.com/fr/evenements-2/ my code is :
[insert page='eventtable' display='content']
However, the inserted content is the one of this page https://www.trialog.com/fr/nouvelle-offre-de-formation-pour-les-compteurs-intelligents/ instead of https://www.trialog.com/en/eventtable/
I have tried to use the id of the page (6657) instead of its name (eventtable) but the issue remains the same.
Any idea of what is happening?
Thanks for your help.

Many script files appeared

After updating plugin version to 3.5.0, many unknown or useless script files are included in header suddenly. It was fine previous version (3.4..).

Page in theme nav bar not working in 3.7.0

Our site uses Insert Pages to inset a navigation bar at the top of each page.

The shortcode is [insert page='nav-bar-template' display='content'].

We are using this in the "Sitewide after Header Shortcode" setting of the Kadence Virtue Theme.

It was working on 3.6.1, but not on 3.7.0.

Help!

[improvement] - add custom post type templates from plugins, not just theme / theme-compat

Would like to load templates from inside a plugin, for the sake of feature organization. Of course this doesn't mean everything works as it should...

per insert_pages_handle_shortcode_insert ln 1018, it tries not to allow templates all over the system, which is sensible. locate_template() is pretty restrictive. I have been using require statements to get around this.

Also filter insert_pages_available_templates could maybe be used I think, just wanted to mention that. Didn't see how to deal with it though. I tried adding a reference to the template into filters theme_CPTSLUG_templates, and CPTSLUG_template , and it did not get picked up. I've been thrashing around with these template loaders earlier, not just re this .. I may definitely be missing something.

Some kind of conflict with page editing options

The plugin causes some kind of conflict with:

WordPress version 5.9.3
Current theme: Storefront (version 4.1.0)
Current plugin: WooCommerce (version 6.5.0)
PHP version 7.3.33

When plugin is activated I can't edit product page in WooCommerce. If the plugin is deactivated the product page can be normally edited.

Error Details

An error of type E_ERROR was caused in line 20 of the file /home/localfonts/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php. Error message: Uncaught Error: Call to a member function get_type() on bool in /home/localfonts/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php:20
Stack trace:
#0 /home/localfonts/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(33): include()
#1 /home/localfonts/public_html/wp-admin/includes/template.php(1395): WC_Meta_Box_Product_Data::output(Object(WP_Post), Array)
#2 /home/localfonts/public_html/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))
#3 /home/localfonts/public_html/wp-admin/post.php(206): require('/home/localfont...')
#4 {main}
thrown

v3.0.1 problem

Paul,

First, great plugin. It is really useful. Second, v3.0.1 broke the internets. I was using it in the excerpt field in Easy Digital Downloads, which worked great until I updated Insert Pages. The desired content is still displayed, but now other parts of EDD get broken.

Sorry I don't have more than that.

A couple of Problems

Love the plug in just having a couple of minor issues that I can work around

  1. The insert button is off screen and I can not scroll down to it. I have to minimize the page to get to it
  2. Adding a page to my post is freezing the scroll of my WP page . I can edit what I can see, but can't move the screen. have to refresh to get it to come back

thats it, great product otherwise

WordPress update 6.3.2

I just updated to WordPress 6.3.2 and now i'm getting an error in the editor. "Error loading block: invalid parameter(s): attributes"

I have disabled this extension. All other extensions appear to work fine. When I re-enable it the error returns.

The plugin page includes the warning "Warning: This plugin has not been tested with your current version of WordPress."

A suggestion for a new attribute

Hi there,

It would be really nice if you could add a customizable attribute to the wrapper tag.

I am really going for a mechanism that will allow me to reload specific sections on the screen and a reload attribute in the wrapper div will be very helpful. Ideally, it would be nice to include a reload javascript as well but that can be left to the developer to do outside of the plugin.

I have done some of those changes to my copy of the code but do not want to mess up the master so if someone with a vision on how to best implement this can do it would be fantastic.

Thanks!

readme.txt with Markdown formatting?

Hi there, the README doesn't display properly because it's formatted with Markdown but saved as a .txt file. Did this happen by accident or is there a reason for it? (If it were an .md file, it'd be better readable.)

page settings printed at end of WP page

Hi! I see this snippet at the end of the page every time I [insert page]. Looks like plugin conflict. Any inputs in how to fix it would be greatly appreciated. Thanks.

  • pm_enable_custom_access: 1
  • pm_content_access_group: 3
  • neve_meta_enable_content_width: off
  • pm_content_access: 2

edit: only happens when display="all"

Add option "title + content" to display setting

I frequently have to include a whole page including its title; I used to use display='all' but this is now causing a problem (see #54)

It would be nice to have an option to display both title and content in a single shortcode, instead of having to insert 2 of them.

Insert Pages-Editor-Dialog breaks Frontend-Tinymce

insert-pages/insert-pages.php

Lines 1153 to 1161 in 2f30c70

public function insert_pages_wp_tinymce_dialog() {
// If wp_editor() is being called outside of an admin context,
// required dependencies for Insert Pages will be missing (e.g.,
// wp-admin/includes/template.php will not be loaded, admin_head
// action will not be fired). If that's the case, just skip loading
// the Insert Pages tinymce button.
if ( ! function_exists( 'page_template_dropdown' ) ) {
return;
}

Function page_template_dropdown exists in front-end too and thus the continuing execution of the wrapping function insert_pages_wp_tinymce_dialog() in front-end breaks my front-end-wp_editor().
I fixed the bug (after hours of detective work) by removing the action insert_pages_wp_tinymce_dialog from the hook before_wp_tiny_mce.
Generally I'd propose to use the switch !is_admin() to prevent execution in frontend.
As for your plugin itself, I'm using it successfully, thanks.

Missing <head> CSS code generated in the child page (Visual Composer)

Hi,

When using your plugin with Visual Composer (this can probably happen using other plugins), we can encounter some rendering issues when specific css code is insered to the child page.

For example, if you add a background on a Visual Composer Row, a css class is added to the row <div> and css code is injected into the <head> tags of the page.

Unfortunately, the inline css code is not reinjected by your plugin in the parent page, and only the page content is displayed.
Do you think it is a way to catch when some specific css is added on a child page to add it back on the parent page?

How to reproduce with Visual Composer:
image

SEO Issues

How does this affect SEO, If I have a blank page that references 4-5 other pages does this affect SEO especially Google search results?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.