My workaround for this problem:
unset( $post->filter );
$url = get_permalink( $post );
Related Posts:
- Passing and retrieving query vars in wordpress
- Why is “/page/2/” not working?
- Get the post permalink within the loop but without additional DB query
- How to prevent redirect when using the term “page” in query string?
- How to get list of posts from permalinks?
- Why doesn’t my page know it’s a page (won’t return true for is_page())?
- how to ensure url uses post_name and not query post id?
- When should you use WP_Query vs query_posts() vs get_posts()?
- Is it possible to get a page link from its slug?
- Need help with add_rewrite_rule
- After server migration only the homepage works
- How to limit the number of posts that WP_Query gets?
- remove “index.php” from permalinks
- where is permalink info stored in database?
- Changing permalinks gives me 404 errors on nginx
- How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
- order by numeric value for meta value
- Should we trust the post globals?
- Query multiple custom post types in single loop
- Change media item permalink
- Get Permalink without domain (i.e. get relative permalink) [duplicate]
- How does WordPress create URLs that Apache knows about?
- Strange permalink issue: can’t rename /company-2/ to /company/
- Get the current page URL (including pagination)
- Stop WordPress appending `-2` to the end of my url after i change it
- Wp get all the sub pages of the parent using wp query
- Get default permalink structure from pretty URL’s
- How to get permalink and title from post ID?
- WordPress Permalinks not working in Apache2 Ubuntu 14.04
- Performance of my permalink structure?
- Permalink format: singular or plural
- What is the difference between get_post_permalink and get_permalink?
- WordPress matching URLs with trailing tildes
- Get current URL (permalink) without /page/{pagenum}/
- Return only Count from a wp_query request?
- How does WordPress handle permalinks?
- Pretty permalinks for search results with extra query var
- Get page permalink without wpurl
- How can I get the privacy policy page?
- Can I use REST-API on plain permalink format?
- How to query for most viewed posts and show top 5
- WordPress slug issue with non-latin characters
- Rewrite Rule for Multilingual Website, Like qTranslate?
- How to get pretty URLs with add_query_arg in permalinks
- What is the best permalink structure for SEO?
- Change author permalink
- Creating custom permalink structure for languages
- Hide permalink and preview button and link on custom post
- Custom post type permalink endpoint
- WP_Query vs get_posts
- How can I make Capital letter ( upper-case ) permalinks?
- How can I reverse engineer a Permalink to Find the Page?
- Mapping Domains to Permalinks (not multisite)
- How to remove dates from existing permalinks?
- How do I set a custom base URL for standard posts?
- Removing Parent Page(s) from Permalink
- Why permalinks work with /index.php/%postname% but not with just %postname%?
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- Getting the Site URL Including the Front Base
- Does WordPress Change the .htaccess File When Updating?
- WP_Comment_Query pagination, delving into the unknown
- Using $_GET variables in the URL?
- Removing the redirect after changing a page’s slug
- How to display a public profile page for registered users with custom slug?
- Random sort within an already sorted query
- Removing leading zeros from custom permalink structure
- Must slugs be unique?
- Setting 404 page in Nginx
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- How to get the clean permalink in a draft?
- How to use relative links on my pages?
- How does wordpress keep track of post id when post id is not used in permalinks?
- How to filter to output of the get_permalink() function
- Stop WordPress from reserving slugs for media items?
- Including category-base in a post permalink results in 404
- How to change ‘with_front” key from an existing custom post type?
- How to use a custom post type as front page?
- Change slug on post creation
- Does WordPress automatically do 301 redirect if I change permalink
- How can I store page ID in a post instead of other selected permalink?
- WordPress Permalink changes to question mark (?) in URL
- WordPress thinks my custom route is a 404
- Prevent WordPress from abbreviating-long-slugs…-in-the-admin
- Adding another word in front of post url
- Permalink with sub-sub-category and post name
- Post type child of another post type
- Permalink not working for page without title
- Remove index.php in permalink structure on IIS server
- Make a WP Query search match exactly the search term
- Search custom taxonomy term by name
- What is the difference between get_permalink vs get_the_permalink?
- Page begins with number, WordPress adds 2
- Move WordPress to subdirectory, keep ALL URLs
- How would I create a different permalink structure for pages and posts?
- WP_Query: query posts by ids from array?
- My permalinks are broken! Can I use mod_rewrite to ignore a physical file?
- Custom Taxonomy in Permalink of Post
- Is the permalink structure /%post_id%/%postname% faster or slower than just /%postname%?
- WooCommerce return 404 on category pages
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts