• Got a profile page that has profile content, if user is not logged in. While it shows profile editing form, if user is logged in and meets a few other conditions.

    Trying to set up a preview condition if url parameter is set. But for some reason, once user is logged in, url parameters simply don’t stick. I add them to the url, go to that url, parameters don’t show.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m not sure why your parameters get stripped. Some types of redirects will fail to pass on parameters. In any case, one thing to try is white-listing your parameters through the ‘query_vars’ filter. You parameter values will then be available as query_vars in the global $wp_query object. They will not affect the query as long as your parameters do not match any established WP_Query arguments.

    The filter passes an indexed array list of all publicly allowed query vars. Add yours to the list and return the complete array.

Viewing 1 replies (of 1 total)
  • The topic ‘URL parameters don’t show for logged in users’ is closed to new replies.