• My site has a registration form inserted using the shortcode – on clicking the register button instead of getting a dialogue acknowledging the registration, the page redirects to a custom post which is displayed in a loop in the section above

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bluesteel3977

    (@bluesteel3977)

    Managed to fix the problem by clearing the last query – but on clicking register the page just reloads and doesn’t display any dialog text confirming registration. If you make an error on the form, it does display the correct dialog text. I tried using [wpmem_form register redirect_to=”https://newcellsbiotech.co.uk/test”%5D but it doesn’t work, still just reloads the same page.

    Plugin Author Chad Butler

    (@cbutlerjr)

    The shortcode will accept just the page (but the page has to actually exist). Also, what you pasted may or may not be valid (depending on the encoding relative to what you pasted). You’ve got it wrapped with curly quotes (”) which are not valid as quotes in a shortcode. So I’m not sure if that happened when you copy/pasted to the forum here or if that’s what is actually in your shortcode. You’ve also got “%5D” which is the HTML encoding for the “]” closing bracket. So double check that as well.

    You don’t have to use the full URL. You can just use the page, and also ditch the quotes if necessary. So if the page slug is actually “test” that’s all you need. Just make sure it has a leading slash (i.e. “/test”).

    [wpmem_form register redirect_to=/test]

    OR

    [wpmem_form register redirect_to=”/test”]

    If you want to check to see if you’ve got a valid result, right click in the form and select your browser inspector (“Inspect” in most browsers). Look for the hidden fields in the form – you’ll see one that is name=”wpmem_reg_page” which should indicate a value for the current page. If your redirect_to shortcode attribute is valid, then you should also have one right below it that is name=”redirect_to” and a value that matches your redirect_to shortcode attribute. If you have “wpmem_reg_page” but no “redirect_to”, then either your attribute invalid, or you’re not actually getting the shortcode result in that location.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirecting to random custom post after registration’ is closed to new replies.