How can I Make polylang Detect the language in this Code.
-
Hi-
This is What I have in the header. But when I press Spanish this part stay in english? Is any solution….<?php if(isset($mts_options['mts_trending_articles'])) { if($mts_options['mts_trending_articles'] == '1' && $mts_options['mts_trending_articles'] != '') { ?> <div class="trending-articles"> <ul> <li class="firstlink"><?php _e('Start Here','mythemeshop'); ?>:</li> <?php $i = 1; $my_query = new wp_query( 'cat='.$mts_options['mts_trending_articles_cat'].'&posts_per_page=5&ignore_sticky_posts=1' ); ?> <?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?> <li class="trendingPost <?php if($i % 4 == 0){echo 'last';} ?>"> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php mts_short_title('...', 20); ?></a> </li> <?php $i++; endwhile; endif;?> </ul> </div> <?php }} ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How can I Make polylang Detect the language in this Code.’ is closed to new replies.