Nothing I see in Core would do that in either wp_redirect()
or wp_sanitize_redirect()
(which is used by wp_redirect()
). However…
- both functions are pluggable and so could have been replaced by
theme or plugin code. - And
wp_redirect()
has thewp_redirect
filter that can be used to
alter the redirect location– the part you are having trouble with.
Something could be causing trouble.
I don’t know how to guess at which of those two are the problem.
Related Posts:
- pre_get_posts redirecting
- How to prevent random 302 canonical-ish redirect on custom template
- Using WP_Query to get attachment returns empty set
- Custom query from all posts & all child page from one parent page?
- Need help setting up a search form for wordpress [duplicate]
- Limit the number of posts from a specific category on index.php
- Set right order for query that returns posts based on two custom fields
- why is this query returning entire blog-posts
- wp_query display posts based on day
- Slow getting posts from category
- Pagination error WordPress multiple loop
- Multiple wp_query loops showing first 5 posts on all pages instead of older posts[Resolved]
- Search Query that Includes Custom Table
- Pagination with WP_Query not working
- Some images not being returned with wp_get_attachment_image
- Pagination not working with WP_Query (creates links but no page)
- Custom conditions in wp query
- Get the type of an advanced custom field (ACF) in a WP_Query loop [closed]
- WP Query posts__in not working with array
- Sorting Posts Based On Meta Value Using AJAX
- new WP_Query based on average values of meta fields
- When should you use WP_Query vs query_posts() vs get_posts()?
- get_posts works but new wp_query doesn’t
- Weird results using wp-query with ‘date_query’ for last week
- Sorting: custom query with orderby meta_value_num THEN by title
- query_posts with sorting on a custom datestamp
- Stop link being removed in menu/list when viewing that post
- How to count post meta key values for all posts in database
- Not duplicating $post->ID leaves empty space.
- Conditionals in WP_Query
- Why WP_Query in functions.php is not working when get_posts works?
- Next / previous posts link doesn’t show up with Posts 2 Posts
- How to exclude posts ordered by comment_count from subsequent wordpress loops using WP_Query?
- I cannot search users via user nicename
- Get post closest to today
- Loop the posts between two dates selected using jquery datepicker
- WP Query Bug? Cannot find out why posts are not found!
- Order by multiple meta keys on wordpress
- Sort posts in dashboard using custom field; also include posts where field isn’t set
- Passing conditional arrays to WP_Query() [closed]
- How to add archives (with pagination) to page template?
- Custom WP_Query with SQL directives for getting posts by authors and terms
- Post OrderBy slow performance
- Query custom post type by date field only working when two posts match the query
- query post based on comparison
- Get posts from similar time as current post
- Query posts filter not working
- No content found on page 2 of pagination with 1 post per page
- meta_query dates from an array
- Add category and user name to recently updated post list
- Creating array to compare custom field values
- WordPress Query Default Order if Meta Values Same?
- Comments orderby comment date not working
- Switched from query_posts to wp_query, pagination no longer working
- Adding page subdirectory dynamically, as like buddypress does
- Divide WP_Query posts by date & post type
- How to return value from sql and display it
- orderby in WP_query doesn’t works
- Unable to pass variable
- Letting users sort posts
- qTranslate get content by language using wp_query
- Extract video content from post to display on front page
- What is wrong with this pagination code?
- WP Query get posts by specific author IDs if one of several logged in authors
- Sort by name – second wp_query
- Retrieve posts in custom post type and specific taxonomies
- How to query post ids liked by the Author
- Sort Posts with custom meta key by default which is currently set as optional
- wp_query pagination links producing 404
- Meta_query weird behaviour
- Why is WP_Query’s meta_query not filtering results?
- Including ‘cat’ => $cat breaks meta_query
- Pagination With Custom WP Query not functioning
- wp_query conditionally get posts
- How return normal search result using wp_ajax action for wordpress
- meta_query compare not doing what I want it to do
- Manipulating a query
- Getting Year & Date inside wpdb [duplicate]
- SQL returned by Wp_Query has wp_posts.ID = -1
- Converting an existing query_posts to WP_Query
- Can’t get pagination to work with this WP_Query loop
- loop through custom post types with meta data
- Passing additional variables to a query
- WordPress Query showing multiple titles
- Query Posts by date range with fixed beginning and end
- Looking for a way to exclude frontpage and nav menu from query filter
- custom query to get posts
- Pagination in custom loop [duplicate]
- query by meta value then date and not empty meta value
- Issue with sorting by post date and custom post type
- get contents and permalink from a specified page
- confirm my booking with phone number
- What query to append the 10 next posts?
- Posts2Posts, wp_query and orderby issue
- Why isn’t my Meta_Query running?
- Dynamically name array in WordPress loop – add/get values
- Dynamically create array from page title
- Ordering Custom WP_Query loop by meta key value with pagination
- Display First posts without the default featured image
- Custom query to show posts