The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › Custom Post Type Loop Doesn't Work On Single Template
Any idea why this wouldn’t work on the single page?
I’m running this loop on page.php and it returns results, but once I go to a single.php page it returns nothing.
NOTE: I had to remove all the php tags because of a formatting issue when posting on the site.
if (have_posts()) : while (have_posts()) : the_post();