No compatible
-
Hi,
i’am using SENNA template, and the last version of plugin (2.4), don’t work with 4.0 WP.
I only INSERT one page. I cant do [insert page=”x”] [insert page=”2x”].
I back to 1.4 and works fine.
Tanks.
-
Not working with latest 4.2. I really hope you can make this plugin compatible soon.
It’s working fine in all of my WordPress 4.2.1 installs. Can either of you provide additional details, such as server error messages, that might shed some light on what’s going on?
Senna template is not an open source theme, so I have no way of determining if something in that theme’s codebase is conflicting with WordPress 4+.
For what concerns me, I get no error but only any text that would be in the appended page, not its images or other html elements. I’ve tried to type out the shortcode, but none of the esamples work (and the .php example doesn’t load the parent page at all).
Maybe it’s due to the way my theme’s pages are created, or the fact I’m usign a child theme?Offhand I can’t think of what the problem is, but it’s probably something in your theme code (especially if you’re using a custom template for the inserted page). Maybe there’s a strip_tags() call somewhere?
I don’t know where to look for a strip_tag. It’s not in the functions.php neither in the page. Maybe I can show you the page code:
<br /> <?php<br /> get_header(); ?><br /> <?php include(locate_template('top-header.php')); ?><br /> <div id="page-content"><br /> <div class="container"><br /> <div class="page-content"><br /> <?php if( have_posts() ) : while(have_posts()) : the_post(); ?><br /> <div class="about-us"><br /> <h3><strong><?php bloginfo('name'); ?></strong></h3></p> <p> <?php the_content(); ?></p> <p> <h3 class="team"><strong>chi siamo</strong> in redazione</h3></p> <p> <div class="row"><br /> <?php<br /> $team_posts = get_posts(array(<br /> 'post_type' => 'team',<br /> 'posts_per_page' => -1,<br /> ));<br /> ?><br /> <?php if( ! empty( $team_posts ) ) : ?><br /> <?php foreach($team_posts as $team) : ?><br /> <div class="col-md-6 col-sm-6 col-lg-3"><br /> <div class="member-details"><br /> <div class="porfile-pic"></p> <p> <?php if( has_post_thumbnail( $team->ID ) ) : </p> <p> $thumb_id = get_post_thumbnail_id( $team->ID );<br /> $thumb_url_array = wp_get_attachment_image_src( $thumb_id, 'thumbnail-size', true );<br /> $thumb_url = $thumb_url_array[0];</p> <p> ?></p> <p> <img src="<?php echo esc_url( $thumb_url ); ?>" alt=""></p> <p> <?php else : ?><br /> <?php echo globo_theme_profile_placeholder_image(); ?><br /> <?php endif; ?></p> <p> <ul class="list-inline"><br /> <?php if( (get_post_meta( $team->ID, '_meta_box_team_fb', true ) ) != "" ) { ?></p> <li><a>ID, '_meta_box_team_fb', true )); ?>"><i class="fa fa-facebook"></i></a></li> <p> <?php }<br /> if( (get_post_meta( $team->ID, '_meta_box_team_twitter', true ) ) != "" ) { ?></p> <li><a>ID, '_meta_box_team_twitter', true )); ?>"><i class="fa fa-twitter"></i></a></li> <p> <?php }<br /> if( (get_post_meta( $team->ID, '_meta_box_team_google', true ) ) != "" ) { ?> </p> <li><a>ID, '_meta_box_team_google', true )); ?>"><i class="fa fa-google-plus"></i></a></li> <p> <?php }<br /> if( (get_post_meta( $team->ID, '_meta_box_team_linkedin', true ) ) != "" ) { ?> </p> <li><a>ID, '_meta_box_team_linkedin', true )); ?>"><i class="fa fa-linkedin"></i></a></li> <p> <?php } ?></p> <p> </div></p> <p> <h3><a>ID)); ?>"><?php echo esc_attr(get_the_title($team->ID)); ?></a></h3></p> <p> <p class="title"><?php echo esc_attr(get_post_meta( $team->ID, '_meta_box_team_designation', true )); ?></p></p> <p> <p><?php echo esc_attr(get_post_meta( $team->ID, '_meta_box_team_bio', true )); ?></p></p> <p> </div> <!-- end member-details --><br /> </div> <!-- end grid-layout --></p> <p> <?php endforeach; ?></p> <p> <?php endif; ?></p> <p> </div> <!-- end .row --></p> <p> </div> <!-- end .about-us --><br /> <?php endwhile; endif; ?><br /> </div> <!-- end .page-content --><br /> </div> <!-- end .container --></p> <p> </div> <!-- end #page-content --><br /> <?php wp_reset_postdata(); ?><br /> <?php get_footer(); ?><br />
…sorry if my previous post was useless because I pasted the code, but this topic is marked resolved whereas it isn’t. Any advice is welcome.
It’s marked resolved because it’s not a problem with the Insert Pages plugin code. It’s a configuration or integration issue on your end. I’m offering help as a community service.
What does your insert page shortcode look like? What display are you using? If you’re using “content,” only what’s in the tinymce editor of that page will show up. If you want more customized displays, you need to set a custom template.
Also, when posting in the WordPress forums, you need to wrap code samples in backticks (`). Look at the “Posting Code” section here:
https://codex.www.ads-software.com/Using_the_Support_ForumsCode fixed. ??
Thanks Jan!
(thank you for fixing the code, and sorry for messing it up)
I have tried all suggested shortcode displays. Some pages are shown and some not (all with text center aligned). I believe it’s only showing text but not PHP includes. For this reason I guess is useless to create a custom template as it will always be made of PHP includes (the theme is built like that).this plugin is so simple to use and I need it badly the way it is… but it just doesn’t work for any of my page ??
I see what looks like a lot of php and html validation errors in the code you pasted, maybe start by cleaning that up?
For example, these are both invalid:
<p></div></p>
<?php<br /> $team_posts = get_posts(array(<br /> 'post_type' => 'team',<br /> 'posts_per_page' => -1,<br /> ));<br />
One other thing to try, if you’re doing deep nesting (i.e., an inserted page within an inserted page), is to disable the deep nesting check that’s intended to prevent circular loops. Put this in your active theme’s functions.php:
function theme_init() { // Disable nesting check to allow inserted pages within inserted pages. add_filter( 'insert_pages_apply_nesting_check', function ( $should_apply ) { return false; } ); } add_action( 'init', 'theme_init' );
The breakine tags you see above were generated when I inserted the code on this page. They are not in the real code.
I have also tried inserting that function (though I’m not deep nesting) to no avail.
At this point (since this plugin was too good to be true) I need to know what’s the function to append one page to another without using a plugin, i.e. a line of code I can insert in my page template. Please advice on this or other methods.I have found a code:
<?php $recent = new WP_Query("page_id=**ID**"); while($recent->have_posts()) : $recent->the_post();?> <h3><?php the_title(); ?></h3> <?php the_content(); ?> <?php endwhile; ?>
it has little improvement, at least the title of the page is added, but the content isn’t. This is beyond my skills.
- The topic ‘No compatible’ is closed to new replies.