Home › Support › English Support › [Resolved] WordPressSEO and WPML CMS Conflict
This topic contains 0 replies, has 2 voices, and was last updated by Ian 5 months, 1 week ago. The support staff assigned to this topic is Harshad.
| Author | Posts |
|---|---|
| Author | Posts |
| December 10, 2012 at 10:35 pm #89567 | |
|
Ian |
Hi If WordPress SEO is disabled and WPML CMS Ennabled then the blog post displays just one instance. If WPML CMS is disabled and WordPress SEO enabled then just one blog post instance. If both WPML CMS and WordPress SEO are enabled then two instances of the blog post show on one page. http://mybeautycity.com/foundation/etude-moistfull-collagen-essence-in-base/ Since multiple themes are displaying this behaviour and the plugin combination creates the issue please advise a fix – one that preferably doesn't involve going into a theme and messing with the template files that are likely to be overwritten on any upgrade. There is another thread on this issue that is marked as resolved by amending the theme template. However multiple people are experiencing the issue with varying themes but the same two plugins which seems to indicate a plugin incompatibility and not a theme issue. Please assist. |
| December 11, 2012 at 7:16 am #89597 | |
|
Harshad |
Dear Ian, Can you please paste the code of page template which displays the duplicated content? |
| December 11, 2012 at 7:49 am #89607 | |
|
Ian |
Hi Single.php: get_header(); <!– #content Starts –> <div id="main-sidebar-container"> <!– #main Starts –> if (have_posts()) { $count = 0; woo_get_template_part( 'content', get_post_type() ); // Get the post content template file, contextually. woo_loop_after(); <?php get_sidebar(); ?> </div><!– /#main-sidebar-container –> <?php get_sidebar('alt'); ?> </div><!– /#content –> <?php get_footer(); ?> ———————————————————————————-END Then content-post.php <?php /** $title_before = '<h1 class="title">'; if ( ! is_single() ) { $title_before = '<h2 class="title">'; $title_before = $title_before . '<a href="' . get_permalink( get_the_ID() ) . '" rel="bookmark" title="' . the_title_attribute( array( 'echo' => 0 ) ) . '">'; } $page_link_args = apply_filters( 'woothemes_pagelinks_args', array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); woo_post_before(); ———————————————————————————END Problem persists. |
| December 11, 2012 at 8:01 am #89608 | |
|
Harshad |
Dear Ian, Okay, Can you please replace the below code
if (have_posts()) { $count = 0;
while (have_posts()) { the_post(); $count++;
woo_get_template_part( 'content', get_post_type() ); // Get the post content template file, contextually.
}
}
with
if (have_posts()) { $count = 0;
the_post(); $count++;
woo_get_template_part( 'content', get_post_type() ); // Get the post content template file, contextually.
}
|
| December 11, 2012 at 10:01 am #89655 | |
|
Ian |
That solved the problem. Support fantastic as all resolved in one day which is so unusual. |
You must be logged in to reply to this topic.