On one of my sites I use Insert Pages WordPress plugin extensively. Basically, this plugin enables me to display the whole content of another post in a post using a shortcode in the post editor. (I have to display a lot of reusable content on the site.)
The plugin works seamlessly using the Newspaper theme, BUT only in the default single-post templates. If I try to use a single-post cloud template with the plugin, it does not display the content of the post, it just skips the shortcode (displays only the current post).
The problem seems to be that the single post content element in the single-post cloud template renders things differently than the default single-post template.
Any ideas how this problem can be solved?
Hi,
Did you try to set the shortcode in single post template with tagDiv Composer?
From what I understand you set the shortcode in post content, if you have WP 5 you can set that shortcode in shortocde element https://www.screencast.com/t/R0P1mtw03XAL
Thank you for your understanding!
Thank you for your answer. Yes, I am talking about using a shortcode in the WordPress single-post (Gutenberg) editor (with the Newspaper theme).
Unfortunately, it does not work when using the shortcode element in WP5 Gutenberg editor, either.
But when I use one of the default Newspaper single-post templates instead of a Newspaper cloud template, the shortcode works.
So there must be something that the cloud template single post templates render differently from the default Newspaper templates when using shortcodes.
I also noticed this when using shortcodes from other plugins. (Some of them work, some don’t when using a single-post cloud tamplate.)
Hi,
Indeed the content of the templates from tagDiv Cloud Library is made from shortcodes, and I think the problem is how is your shorcode interpreted inside the single post template.
Please provide me the shortcode form the plugin that you use to take a look to this problem.
Thank you for your understanding!
Hey,
thanks for the reply.
Basically the shortcodes look like this (I am listing some examples here):
[insert page=’author-syed-balkhi’ display=’content’]
[insert page=’128′ display=’content’]
[insert page=’128′ display=’all’]
[insert page=’128′ display=’custom-author.php’]
where ‘author-syed-balkhi’ is the slug of the inserted content, 128 is the ID (optional, which one you want to use), and ‘display’ defines other options (what part of the content you want to insert, or use a template that handles which parts of the inserted post you want to display and how).
Here is a description of the usage if you need more information:
https://www.wpbeginner.com/plugins/how-to-insert-wordpress-page-content-to-another-page-or-post/
-
This reply was modified 7 years by
tszt2.
Hi,
I make some quick search and is look like the template from cloud is not interpreted the code -> if you have the same shortcode that you want to show you can set it in ad section of single post content or in a column text -> https://www.screencast.com/t/Q6tEku5Yah6
unfortunately for the moment this is the only way to use this shortcodes, sorry!
Or maybe if you can use the Infinite Loading on post -> https://tagdiv.com/infinite-loading-for-single-posts/
Thank you for your understanding!