Forums
(@netsdaily)
18 years, 9 months ago
got it to work by changing the first line to
$n = $post->ID;
I should add that I have the same exact code (except for the the_ID() part) in a non-WordPress php page, and it works fine.