WordPress.org

Forums

Yoast SEO
[Plugin: WordPress SEO by Yoast] Incompatibility with theme Neuro (CyberChimps) (2 posts)

  1. chirac
    Member
    Posted 3 years ago #


    When it happened:

    When you have your site using wordpress 3.4.1 with the theme Neuro 2.0.10 working very well and you decide to install WordPress SEO, the plugin messes up all pages of Categories (Url ending with .../category/name-of-category/).

    What happens:

    the first two articles listed (sometimes only one) in every category pages appear in double.

    see example here: http://www.saveursduchef.fr/category/salades/

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. chirac
    Member
    Posted 3 years ago #

    This is the code in the Archive.php of the Neuro theme:

    <?php
    /**
    * Archive template used by Neuro.
    *
    * Authors: Tyler Cunningham, Trent Lapinski
    * Copyright: © 2012
    * {@link http://cyberchimps.com/ CyberChimps LLC}
    *
    * Released under the terms of the GNU General Public License.
    * You should have received a copy of the GNU General Public License,
    * along with this software. In the main directory, see: /licensing/
    * If not, see: {@link http://www.gnu.org/licenses/}.
    *
    * @package Neuro.
    * @since 2.0
    */
    
    	global $options, $themeslug, $post, $sidebar, $content_grid; // call globals
    	response_sidebar_init(); // sidebar init
    	get_header(); // call header
    
    ?>
    
    <div class="container">
    
    	<div class="row">
    		<div class="wrap">
    			<div class="row">
    				<?php if ($options->get($themeslug.'_archive_breadcrumbs') == "1") { response_breadcrumbs();}?>
    			</div>
    			<div class="row">
    
    	<!--Begin @response before content sidebar hook-->
    		<?php response_before_content_sidebar(); ?>
    	<!--End @response before content sidebar hook-->
    
    		<?php if (have_posts()) : ?>
    
    			<div id="content" class="<?php echo $content_grid; ?>">
    
    			<!--Begin @response before_archive hook-->
    			<?php response_before_archive(); ?>
    			<!--End @response before_archive hook-->
    
    			<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post_container">
    
    				<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    
    				<!--Begin @response archive hook-->
    				<?php response_loop(); ?>
    				<!--End @response archive hook-->
    
    				</div><!--end post_class-->
    
    				<!--Begin @response post bar hook-->
    				<?php response_post_bar(); ?>
    				<!--End @response post bar hook-->
    
    			</div><!--end post container--> 
    
    		 <?php endwhile; ?>
    
    		 <?php else : ?>
    
    		<h2>Nothing found</h2>
    
    		<?php endif; ?>
    
    		<!--Begin @response pagination hook-->
    			<?php response_pagination(); ?>
    		<!--End @response pagination hook-->
    
    		<!--Begin @response after_archive hook-->
    			<?php response_after_archive(); ?>
    		<!--End @response after_archive hook-->
    
    		</div><!--end content_padding-->
    
    		<!--Begin @response after content sidebar hook-->
    		<?php response_after_content_sidebar(); ?>
    		<!--End @response after content sidebar hook-->
    
    				</div><!--end content-->
    			</div><!--end row-->
    		</div><!--end wrap-->
    	</div><!--end row-->
    </div><!--end container-->
    
    <!-- For sticky footer -->
    <div class="push"></div>
    </div>	<!-- End of wrapper -->
    
    <?php get_footer(); ?>

    it sounds like the_post() is corrupted. Does this plugin override this function? or any others related to the process of listing a category?

    thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.