| @@ -233,9 +233,9 @@ | ||
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | public function content( $attr, $noAjax ) { |
| 236 | 236 | $attr = wp_parse_args( $attr, $this->get_attributes() ); |
| 237 | - global $unique_ID; | |
| 237 | + global $ultp_unique_ID; | |
| 238 | 238 | |
| 239 | 239 | if ( ! $noAjax ) { |
| 240 | 240 | $paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' ); |
| 241 | 241 | $attr['paged'] = $paged ? $paged : 1; |
| @@ -288,9 +288,9 @@ | ||
| 288 | 288 | $post_id = get_the_ID(); |
| 289 | 289 | $title = get_the_title( $post_id ); |
| 290 | 290 | $titlelink = get_permalink( $post_id ); |
| 291 | 291 | if ( $attr['queryUnique'] ) { |
| 292 | - $unique_ID[ $attr['queryUnique'] ][] = $post_id; | |
| 292 | + $ultp_unique_ID[ $attr['queryUnique'] ][] = $post_id; | |
| 293 | 293 | } |
| 294 | 294 | $typeStyle = $style = ''; |
| 295 | 295 | if ( $attr['tickerType'] != 'marquee' && $attr['tickerType'] != 'typewriter' && $attr['tickerAnimation'] == 'fadeout' ) { |
| 296 | 296 | $style .= 'animation-delay:' . ( $speed - 1000 ) . 'ms'; |
| @@ -337,9 +337,9 @@ | ||
| 337 | 337 | $wraper_after .= '</div>'; |
| 338 | 338 | $wraper_after .= '</div>'; |
| 339 | 339 | $wraper_after .= '</div>'; |
| 340 | 340 | |
| 341 | - wp_reset_query(); | |
| 341 | + wp_reset_postdata(); | |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | return $noAjax ? $post_loop : $wraper_before . $post_loop . $wraper_after; |
| 345 | 345 | } |