I’m working on a custom page template, I’m trying to display a relationship post object field inside a loop. And it’s not working. I did a lot of research before posting on this forum. All the answers are agree on one thing, you need to use the wp_reset_postdata() function to reset the $post object. That<s what I’m doing but I can’t get the rest of my loop to work !!
Here’s my code :
‘post_type’ => ‘film’,
‘order’ => ‘DESC’,
$my_query = new WP_Query($args);
while ($my_query->have_posts()) : $my_query->the_post();