Support

Account

Forum Replies Created

  • Thanks a lot!

    I replace :
    $values = get_post_meta( $title, 'du_meme_auteur', true);
    by
    $values = get_field('du_meme_auteur', $title, true);

    and now my array is returning post object.

    Thanks again!

    There is still a tricky issue to display it with :

    foreach($values as $agrege)
    			{
    
    				setup_postdata( $GLOBALS[$agrege]); 
    				wc_get_template_part( 'content', 'product' );  
    			}
    			echo '</ul></div></div></div>';
    			wp_reset_postdata();

    but I avoid the problem with displaying it a different way. `

    Cha

Viewing 1 post (of 1 total)