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.
Related Posts:
- get_post_custom stripping styling issue
- get post id in while loops outputting page id
- How to get Advanced Custom Field Value According using POST ID? [closed]
- Guest Author – How to display posts on /author/ archive page
- How do I correctly set up a WP-Query to only show upcoming event-posts?
- Check if checkbox is marked on publish/update post
- Query values from a Post Object Repeater [closed]
- Saving custom fields to a custom taxonomy
- ACF to select posts not displaying on blog page
- Update post meta within save_post action
- Saving Post Data in Another Database
- Add hero image to home page (blog format) via the dashboard
- How to display post list in a table layout (multiple queries in single loop)
- WP_Query custom field pass the post id
- If custom field is empty, use one from a previous post
- ACF flexible content block not showing on live site (works locally)
- ACF date picker to trigger category change
- search form for custom fields
- How to work with posts and sub posts?
- Run a function when a custom post is update?
- Template with ACF and Pagebuilder
- Change post value in WordPress
- Assign a day of the week to post, e.g: Assign Monday to post and have it only appear when the day is Monday
- WordPress Request Post All Post ID in a Loop? [closed]
- Auto populate custom fields by post date
- ACF Relationship – Get Parent’s Post Object
- Run function after post is updated
- How do I show the post title if an advanced custom field hasn’t been used?
- How to make a local “scroll to ID” on post?
- Custom post order returning posts from other categories
- How to detect if an ACF custom-field is really in use?
- How to make internal links creating plugin to respect ACF?
- Separate Database Tables For Different Post Types
- Disable WordPress’ blogging functionality and disable ‘posts’
- strip only specific tags (like ), but keep other tags (like )
- post_name empty after wp_insert_post
- Pagination not working on Custom Page Template
- How can I specify a category post on my home page
- Trying to put an array into ‘post__in’ => array() query not working
- How to search only by post title and category?
- Is there a way to change the color of a row in Post Administration based on the type of post?
- Phantom 302 status code when sending a POST requests on pages
- How to change what the post creation page looks like?
- Permalink Settings: optional settings doesn’t apply to editor
- Limit number of posts a user can make per minute?
- How do I allow users to follow a post and then allow admins to email all users who have followed that post?
- Display posts from #6 to #20 on archive page
- How to start with post number x?
- Setting up navigation links for posts (first, prev, next, last)
- Posts page only shows one post
- How can i sort the categories by ID
- Sidebar links for different pages
- Add ajax load more function using WP API
- Add blogs to “Blogs i Follow” sidebar [closed]
- Exclude category from
- Display tag image in post using Taxonomy Images plugin index.php
- Blog page not working
- Words must be included and restricted words in new posts
- How to add a column to edit posts area in admin panel?
- Pausing and Resuming WP_Query results
- Can’t get buddypress notifications in front-end; why do I get this error?
- How to disable WordPress blog folder
- Automatically add date to the auto generation of post slug
- sql select for post_title and a term name
- Count number of posts of current month
- Removing Extra Caption tag around image on post of WordPress
- How to check if there are posts with the same tag
- Can i have more than one form for front end posting in one template [closed]
- How do I allow certain users to make a certain type of post?
- How to make blog posts have their own urls?
- How to add content above footer in posts from specific category
- Show posts from two specific category in WP_Query
- How to pull latest posts from a specific category
- Is it possible to change the default WP post table’s data source?
- call to jquery ajax failing with 500 error when passing extra data field
- How to create a button to filter posts (list) by meta value
- How to make certain posts not appear on the main page, but instead only a newly created category(in the menu section)
- Not able to post data through wp-admin
- Double loop output
- AJAX load more posts not using correct category and repeating the same few posts
- Multiple Pages – Seperate blogs
- Post by Email – Shortcode for Language? [closed]
- Difficulty in creating and handling a complex post type
- Admin is showing all posts on page 1
- Display only current page -> posts tags in page
- 3rd Party Login in wordpress
- How to mix pages and sub-categories in a url
- Formatting error while publishing theblog from Microsoft Word
- Overwrite URL on blog posts
- post content includes and seo vs. duplicate content
- Create post from form with image
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- 301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%
- On the post list, how do you show different text to the main content?
- I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish
- Display draft posts on single pages [duplicate]
- query_posts different amount of posts per page [duplicate]
- Function to delete post from category older than 2 days
- Display post archive as a month table, show last three months
- How to restore post to pending status (no draft)