When I use the plugin and put the post I made in two language it shows on the home with both language, not just english or spanish eventough I change the language on the browser, it just shows both language always, here it's the code i'm using to show the custom posts on the index.php (i'm using advanced custom fields plugin)
- Code: Select all
$post_id = 48;
$post_data = get_post($post_id, ARRAY_A);
echo ' '.$post_data['post_title'].' ';
echo ' '.$post_data['post_content'].'';
both the content and title shows the two languages, what it's wrong?
I'm using the post_id to call the post directly from the advanced custom field plugin