uhm-coe / insert-pages Goto Github PK
View Code? Open in Web Editor NEWInsert Pages is a WordPress plugin that lets you embed any content (e.g., pages, posts, custom post types) inside other content using the Shortcode API
Insert Pages is a WordPress plugin that lets you embed any content (e.g., pages, posts, custom post types) inside other content using the Shortcode API
It would be great if it could:
Post1, Post2
PageA [insert post1] [insert post2] //works
PageB [insert PageA] //insert only elements defined in PageA except inserted elements
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 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 }
That way we could f.i. add a featured image of an included page right before the content of that page.
I've already posted this at https://wordpress.org/support/topic/pre-or-postfix-inserted-content?replies=1
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!
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.
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.
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 :</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.
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.
Insert 2 shortcodes, one with title, and one with contents.
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
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.
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?
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
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.
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..).
Currently experiencing this issue with WordPress 6.0. Deactivating the plugin resolves the issue.
I am using Insert Pages on http://arizona.renfestinfo.com/ to insert http://arizona.renfestinfo.com/home/our-sponsors/. The formatting is all messed up, doesn't look like the source page - images are smashed together, it's a mess. What can I do to correct this??
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!
Have the Guetenberg editor on website. How do I access the insert button? Your screenshots show old classic editor.
It would be nice if the page slug in the shortcode is automatically updated if the slug changed.
Trying to insert a page created with Thrive Architect doesn't include its inline generated styles. Probably similar problem with Elementor etc (https://wordpress.org/support/topic/insert-pages-created-by-elementor/)
Hi, sometimes i'm creating mutiple page, all linked to each other.
And i need to put Insert page, but i've to wait to publish to be able to pull the insert page.
So it would be great to have the possibility too link page that are not published yet
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.
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.
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
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.
Love the plug in just having a couple of minor issues that I can work around
thats it, great product otherwise
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."
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!
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.)
could i insert the post content as post status as draft?
i cannot search the post content as post status as draft in widget
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.
edit: only happens when display="all"
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.
Lines 1153 to 1161 in 2f30c70
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()
.insert_pages_wp_tinymce_dialog
from the hook before_wp_tiny_mce
.!is_admin()
to prevent execution in frontend.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?
When inserting a page that has been created using VC, the fonts/styles are messed up.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.