Title: [Plugin: stella plugin] Language specific content when using get_posts()
Last modified: August 20, 2016

---

# [Plugin: stella plugin] Language specific content when using get_posts()

 *  [sterfpaul](https://wordpress.org/support/users/sterfpaul/)
 * (@sterfpaul)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-stella-plugin-language-specific-content-when-using-get_posts/)
 * In a plugin a wrote i use get_posts() to get a list of posts.
    I then show the
   title and excerpt of these post but it doesn’t show the title in the selected
   language.
 * Am I doing something wrong or should i be doing this a different way?
 *     ```
       <?php
       		global $post;
       		$menuItems = get_posts(
       						array(
       							'post_parent' => $post->ID,
       							'post_type' =>  'eazieMenuItem',
       							'post_per_page' => -1
       						)
       					);
       		foreach($menuItems as $menuItem)
       		{
       		?>
   
       			<tr>
       				<td>
       					<span class='menuItemTitle'>
       						<?php echo $menuItem->post_title;?>
       					</span>
       					<?php echo get_eazie_excerpt($menuItem->ID);?>
       				</td>
       				<td class='priceCol'><?php echo get_post_meta($menuItem->ID, 'cals', true)?></td>
       				<td class='priceCol'><?php echo get_post_meta($menuItem->ID, 'price', true)?></td>
       			</tr>
       		<?php
       		}
   
       		?>
       ```
   
 * [http://wordpress.org/extend/plugins/stella-free/](http://wordpress.org/extend/plugins/stella-free/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ruslan.Khakimov](https://wordpress.org/support/users/ruslankhakimov/)
 * (@ruslankhakimov)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-stella-plugin-language-specific-content-when-using-get_posts/#post-3109220)
 * Hi,
    Use `echo get_the_title( $menuItem->post_ID );` instead `echo $menuItem-
   >post_title;`

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: stella plugin] Language specific content when using get_posts()’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/stella-free.svg)
 * [Stella plugin](https://wordpress.org/plugins/stella-free/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stella-free/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stella-free/)
 * [Active Topics](https://wordpress.org/support/plugin/stella-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stella-free/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stella-free/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ruslan.Khakimov](https://wordpress.org/support/users/ruslankhakimov/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-stella-plugin-language-specific-content-when-using-get_posts/#post-3109220)
 * Status: not resolved