• Hi,

    For compatibility with others plugins using $GLOBALS[‘post’] (like WordPress SEO by Yoast breadcrumbs), you must upgrade alx-tabs.php code with wp_reset_postdata(); after every new WP_Query()

    ....
    /*  Widget
    /* ------------------------------------ */
    	public function widget($args, $instance) {
    ....
    
    		<?php if($instance['recent_enable']) { // Recent posts enabled? ?>
    
    			<?php $recent=new WP_Query(); ?>
    
    			.....
    
    		<?php
    			/* Restore original Post Data */
    			wp_reset_postdata();
    		} ?>

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Please take this seriously. This is very urgent.

    I would recommend to NEVER use WP_Query and rely only on get_posts(), but if you do want to use WP_Query it’s mandatory to wp_reset_postdata() after each “inner loop”.

    You should revise the all theme because I’m pretty sure this is a problem each and every time (which are 7) you use WP_Query. The problem is not only at alx-tabs.php.

    Is there anybody out there?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug alx-tabs.php with others plugins’ is closed to new replies.