While loop really needed on single-ad_listing?
Analysing the file single-ad_listing.php related to the visualization of the ad details, I noted that in it there is a "while" loop that runs through the posts.
My question is: why have a "while" loop if the ad should be only one? I think the correct way should be
if ( have_posts() ) :
the_post();
Infact I had a customer that inserted two identical ads and misteriously they are shown both on single ad page!!
For the moment I deleted the while loop, so that now I don't have two ads on the same page.
Let me know your comments, please.
Thank you in advance.