Title: redirect_array_string not working
Last modified: September 1, 2016

---

# redirect_array_string not working

 *  Resolved [gramirez68](https://wordpress.org/support/users/gramirez68/)
 * (@gramirez68)
 * [10 years ago](https://wordpress.org/support/topic/redirect_array_string-not-working/)
 * Here is the shortcode:
 *     ```
       [login redirect_page='http://url.com/target-one' redirect_field='Fieldname'
       redirect_array_string=
       'VALUE 1 => http://url.com/target-two,
       VALUE 2 => http://url.com/target-three' ]
       ```
   
 * This redirects to: [http://url.com/login/](http://url.com/login/)\’[http://url.com/target-one](http://url.com/target-one)\’
 * This happens regardless of the username/password submitted.
 * I see that other plugin users have run in to the same problem but it doesn’t 
   look like it was ever resolved? Please help.
 * [https://wordpress.org/plugins/front-end-only-users/](https://wordpress.org/plugins/front-end-only-users/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [gramirez68](https://wordpress.org/support/users/gramirez68/)
 * (@gramirez68)
 * [10 years ago](https://wordpress.org/support/topic/redirect_array_string-not-working/#post-7461738)
 * Actually it redirects to: [http://url.com/login/’http://url.com/target-one’](http://url.com/login/’http://url.com/target-one’)
   without the backslashes
 *  Plugin Contributor [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * (@etoilewebdesign)
 * [10 years ago](https://wordpress.org/support/topic/redirect_array_string-not-working/#post-7461827)
 * Hi G,
 * The syntax of your shortcode is slightly incorrect. Let’s say you had a custom
   field called “Pet” with “Dog”and “Cat” as its values. Then your shortcode would
   need to look something like this:
 *     ```
       [login redirect_page="http://url.com/target-one" redirect_field="Pet" redirect_array_string="Dog = http://url.com/target-two, Cat = http://url.com/target-three"]
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘redirect_array_string not working’ is closed to new replies.

 * ![](https://ps.w.org/front-end-only-users/assets/icon-128x128.png?rev=1805921)
 * [Front End Users](https://wordpress.org/plugins/front-end-only-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-only-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-only-users/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-only-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-only-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-only-users/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [etoilewebdesign](https://wordpress.org/support/users/etoilewebdesign/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/redirect_array_string-not-working/#post-7461827)
 * Status: resolved