Problem with loop in Wordpress and WPML

0

I have a loop to pick up the items that have a box checked (which I add with Custom fields). Everything works correctly in the default language, Spanish, but when I translate the product into English I do not see the same window as in Spanish, I see the screen divided in two, on the left the Spanish version and on the right the version in English.

I make sure that the value for that box that determines if the product appears or is not the same (in customs fields is a boolean true / false and here it appears as 1/0) in the English version but they still do not appear and I do not know what else to do ... everything is perfect in Spanish but I do not take any article in English even though they have that value ... could it be that I change the name of the goal in the second language and that is why I do not nothing the loop?

These are the loop arguments (the "visible" goal is what determines whether or not it has to appear):

$args = array(
    'post_type' => 'product',
    'meta_key'=> 'visible',
    'meta_value'=> true,
    'posts_per_page' => -1,
    'order' => 'DESC',
    'orderby'=> 'date'
);

Using Wordpress 4.7.4 / WPML 3.7.0 / ACF 4.4.11

    
asked by torpedete 16.05.2017 в 11:27
source

1 answer

0

Can you modify your question with the versions of Wordpres, WPML and ACF that you are using?

Here is how to use the ACF with WPML: link

I use the pro version and with what it says there has never given me problems.

If you are not doing so, this value may only exist in the "Spanish" part and not in the other languages.

    
answered by 16.05.2017 / 12:11
source