Bug: Ads won't loop automatically - Simple Fix?
My ads aren’t appearing to loop properly under the listings section of my website. I have a couple ads up under a category to test my issue. Currently only one ad is appearing. I’ve been digging deeper and have found the root to the problem, I’m just unsure of how to fix it or where to look to fix the problem.
I’ve disabled all my plugins and the problem wasn’t resolved, so there are no further issues with conflicts here. Everything is up to date as well.
The issue is directly correlated to the following line of code below.
<?php get_template_part( 'loop', 'ad_listing' ); ?>
When I put this code within the correct php multiple times (like below)
<?php get_template_part( 'loop', 'ad_listing' ); ?>
<?php get_template_part( 'loop', 'ad_listing' ); ?>
<?php get_template_part( 'loop', 'ad_listing' ); ?>
The method appears to temporarily resolve the issue and populate my additional advertisements, but I have to put the code (above) within the template for the precise amount of ads I have so this will be ineffective when I have multiple users listing ads.
Is someone able to tell me why my ads aren’t looping properly and how I can restore a certain file to infinitely loop my listings again?
Thanks a lot! This answer will surely help other people having this same issue.