Using shortcode two times problem
-
Hi,
So on my site I would have on top right a Login button where a modal box pops up and with sections for registering and login. I use ajax_login and ajax_register in that modal box. That works all good and stuff.
But I also have 2 pages for registration and login which include the same 2 shortcodes. However, if let’s say the person goes to the registration page and clicks on top right login button to login or register via there and it pops up a modalbox which have a login/register, it won’t display the registration form because the registration form is already loaded on the registration page, but the login form in the modalbox is present.
Same would happen if a person goes to the login page and clicks on the login button to pop up the modalbox, he would be able to see the registration form but not the login form. Any idea why this is happening?
You can replicate the same thing just by adding [ajax_register] or [ajax_login] two times on a page. it will only load 1 register form and/or 1 loginform, and not 2. However this isn’t so handy since i use a modalbox that is present on the entire site. Any idea how to get this fixed?
I’ve sent you guys an e-mail today with my site’s address in it so you can always go to it and see for yourself if my story is a little confusing.
The topic ‘Using shortcode two times problem’ is closed to new replies.