• Resolved msgbroadcast

    (@msgbroadcast)


    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

    (@carazo)

    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

    (@msgbroadcast)

    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

    (@carazo)

    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

    (@msgbroadcast)

    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

    (@msgbroadcast)

    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

    (@carazo)

    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.