The difference between the two is that the test site has pretty permalinks enabled and the live site doesn’t. If you look at the URL, the issue becomes apparent, this is not a valid URL/query string:
http://www.veredor.com/?page_id=140?register=true
If you change the second ?
to an ampersand, the page renders correctly.
Either enable pretty permalinks on the live site, or modify your code with add_query_arg
to correctly append the additional query argument:
<input type="hidden" name="redirect_to" value="<?php echo add_query_arg( 'register', 'true' ); ?>" />
Related Posts:
- How to hide/redirect the author page
- Load template inside a parent template
- Template redirect is_tax() not working
- Display a custom 404 page without a redirect
- Submit form to another template (ugly url)
- Using file outside of template hierarchy for Twitter sign in authentication
- How to change the default registration email ? (plugin and/or non-plugin)
- Any advantage to using get_header() over include(‘header.php’)?
- What’s the purpose of the paged.php file?
- How to find the posts page (home page) programatically
- How to check if a shortcode exists?
- What is the link to my default “archive” page?
- Customizing get_the_excerpt() to specific length and “Read More” output.
- How do you check if a WordPress template file exist?
- Load entire NextGEN gallery from single thumbnail?
- Outputting Canonical Resource URLs Across a Multisite Network?
- stop blog page from using index.php?
- Gutenberg & Pre-formatted Templates: Core Block Attributes
- Creating a custom category page with pagination
- Modifying searchform.php and search.php to have two kinds of searches
- Change site template from php
- Passing variables to template parts
- Display HTML only if Custom Field has a Value
- Get templated page/post content via the WordPress API
- Force all images to full size in page template
- Login WordPress website using wp-rest api
- how to create template path for external (include) .js file
- Global variable set in the template’s header.php is unable to echo in footer.php
- How to Increment ID value within ACF Repeater Field Loop
- When a link doesn’t exist, how to tell WordPress what to do? (404 Error Page)
- WordPress Schema.org Markup. What value does it add?
- home.php not loading
- get_search_link() redirects to 404 template page
- How to get the most recent modified date of anything in the footer of my site?
- get_post_metadata() undefined when used in loop in RSS template
- the_excerpt producing empty output
- New custom nev not working [closed]
- How do I insert JS tracking code to a page with the WP editor?
- LaTeX for WordPress strips codes in loop
- How to remove the Template drop down, but keep Parent and Order
- Search results when none found – stay on page they were on
- Include Lumen/Laravel app in custom WordPress template
- Rewrite Rules to custom template
- Unable to display pagination links on custom category template
- How to change header image size in custom themes
- Different Template based on HTTP Referer
- Where is Number of Posts Set?
- How can I force URL of a custom post type archive to use a page template?
- Possible to have one template call different sidebars for different pages?
- How does WordPress choose archive type template?
- How to properly Remove certain CSS / JS files from template
- What is the most efficient way to create multiple versions of the same template?
- Are there any downsides to not using get_header(), get_sidebar and get_footer()?
- How do I get the page template name chosen?
- How can I add text to a specific ‘Edit Page’?
- Automatically use specific template to load subpages
- No three-columns template in TwentyEleven?
- How to get and set the post tag value within WP Query from URL?
- Can’t split the_title() by white space
- Not so common HTML transition to wordpress issue
- Differentiation between index.php and page.php
- Undefined get_header function
- Single-page.php template file name not shown
- WordPress custom template not showing in the list of available templates
- How to create new template page and template-parts in wordpress theme [closed]
- How to display custom post type?
- Pagination issue with tag.php
- How are the HTML classes generated?
- Page Template with Sidebar Naming Convention?
- Adding text to the footer of each post based on tags or categories
- Blog page won’t show Blog template
- How can I abstract code out of a template by using functions.php
- Make Permalink go to specific template
- WordPress function.php on ZendFramework CMS
- Site Title appearing twice on live site
- Give user option to select full post index page or excerpted index?
- how to change already posted blog to custom template wordpress?
- WordPress change title with custom dynamic
- template with multiple post loops for multiple widgets [duplicate]
- Random home page at each refresh between array of page IDs
- Do not trigger page 404 on custom template
- Print different parts of content in template
- How can I pass a variable from a template to header.php of a theme
- Page Template Selector Error
- Search button click sends to single-custom_post_type instead staying at the same page
- Display all page which have not a certain template
- Change Page Template Based on URL Rewrite in WordPress
- I want to display all related posts for a selected tag in WordPress
- WordPress Child Theme Template auth_redirect wrapper
- Show a custom template, no matter the page being viewed, if the user is not logged in
- Allow the access over wp-login.php
- printf, translation and the_author_posts_link()
- Is there a list of all possible WordPress URL’s?
- How can I setup custom templates for a meta-data query
- Any way to insert text on page from a query results?
- Move Index to a page
- Problem with custom page template and permalink
- Index template and Home page
- How to display page content and a list of posts on the same page?
- Force template on page load