Title: Frontend export shortcode not working as expected
Last modified: August 6, 2021

---

# Frontend export shortcode not working as expected

 *  Resolved [msgbroadcast](https://wordpress.org/support/users/msgbroadcast/)
 * (@msgbroadcast)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/frontend-export-shortcode-not-working-as-expected/)
 * Hi, I am trying to use the shortcode within a custom dashboard in the admin area.
   The shortcode generates the export button as expected, however upon clicking 
   it takes me to a settings page within the options.php that displays all sitewide
   specific fields in one long list entitled “all settings” with the message “Warning:
   This page allows direct access to your site settings. You can break things here.
   Please be cautious!”.
 * Am I missing something?
 * Thanks!
 * Mike

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

 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/frontend-export-shortcode-not-working-as-expected/#post-14742122)
 * Mike,
 * The shortcode is prepared to work in the frontend, as every shortcode.
 * This is the first time I see someone using a shortcode into dashboard.
 *  Thread Starter [msgbroadcast](https://wordpress.org/support/users/msgbroadcast/)
 * (@msgbroadcast)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/frontend-export-shortcode-not-working-as-expected/#post-14742146)
 * Hi Javier, thankyou for your swift response.
 * The admin dashboard we have created is written directly into our theme functions
   file, and populates the dashboard in place of the default WordPress dashboard.
   Most shortcodes we use in here work as if they were in the front end, called 
   with <?php echo do shortcode (”)?>.
 * This is a minor point, as obviously can do the export within the admin tools 
   menu, but we were hoping to preset the export options and just have an export
   button here thats easily reachable and simple, as we make virtual event platforms
   and need to update clients with their registration figures. One button click 
   would really help us, and make it fool proof if we decide to allow the client
   admin to export in this manner too.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/frontend-export-shortcode-not-working-as-expected/#post-14742168)
 * Yes I know how to do it but this is prepared to work in the frontend… I would
   have to rewrite all to make also work there.
 * I never thought someone could need it working there.
 * I will include in the to-do list, but this won’t be soon.
 *  Thread Starter [msgbroadcast](https://wordpress.org/support/users/msgbroadcast/)
 * (@msgbroadcast)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/frontend-export-shortcode-not-working-as-expected/#post-14742209)
 * That’s ok, I just wondered if an easy solution etc. Again, thankyou for your 
   speedy response and for considering, and will keep following this post if it 
   gets rolled in :).
 *  Thread Starter [msgbroadcast](https://wordpress.org/support/users/msgbroadcast/)
 * (@msgbroadcast)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/frontend-export-shortcode-not-working-as-expected/#post-14742324)
 * I’ve figured a work around for now – iframe of a published page but restricting
   access to admins. Just a quick question regarding the shortcode, are the parameters
   stackable, eg:
 * [export-users role=”role1,role2,role3″ columns=”user_nicename,user_email,first_name,
   last_name,user_registered,role,business_name,job_title,full_name”]
 * ?
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/frontend-export-shortcode-not-working-as-expected/#post-14744116)
 * What are you referring to with “are the parameters stackable”?

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

The topic ‘Frontend export shortcode not working as expected’ is closed to new replies.

 * ![](https://ps.w.org/import-users-from-csv-with-meta/assets/icon-256x256.png?
   rev=1174343)
 * [Import and export users and customers](https://wordpress.org/plugins/import-users-from-csv-with-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-users-from-csv-with-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/frontend-export-shortcode-not-working-as-expected/#post-14744116)
 * Status: resolved