Nevermind, after a couple of minutes, I figured out the issue.
Instead of passing the $post->ID
into get_the_permalink
, I can just not pass any parameters in as the setup_postdata($post)
takes care of this.
Nevermind, after a couple of minutes, I figured out the issue.
Instead of passing the $post->ID
into get_the_permalink
, I can just not pass any parameters in as the setup_postdata($post)
takes care of this.