Bug alx-tabs.php with others plugins
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bug alx-tabs.php with others plugins’ is closed to new replies.