Title: Import/Export Data as CSV
Last modified: December 3, 2016

---

# Import/Export Data as CSV

 *  [ldeschenes](https://wordpress.org/support/users/ldeschenes/)
 * (@ldeschenes)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/importexport-data-as-csv/)
 * Hi,
 * Great plugin! I thinking of buying the Data Editor Extension.
 * One question:
    Is the feature “Import/Export Data as CSV” available on a front-
   end page or only in the back-end ?
 * Thanks.

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

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/importexport-data-as-csv/#post-8510472)
 * Only on an administration page.
 *  Thread Starter [ldeschenes](https://wordpress.org/support/users/ldeschenes/)
 * (@ldeschenes)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/importexport-data-as-csv/#post-8511050)
 * Thanks Michael.
 * Any plan of making it available as a shortcode on any page like the edit feature?
   
   Could it be put on a future features list?
 * Any code I could used in the plugin “Shortcodes Actions and Filters” that would
   do the job?
 * The reason I am asking is because I would like to have a super-user upload a 
   table every month but I do not want to give him access to the administration 
   pages.
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/importexport-data-as-csv/#post-8513727)
 * No plans currently to make that available via a shortcode.
 * I suppose you could write a shortcode to display the form that appear on the 
   administration page onto a different page. The plugin file CF7DBPlugin.php has
   a function showShortImportCsvPage(). You could create a shortcode that instantiates
   this class and calls that function. I haven’t actually tried it that way.
 * Submitting the form won’t work unless you have the CFDB Editor installed (for
   the back-end code to actually to do the import).
 * The user submitting the form would have to be at a level that has CFDB permission“
   Can Edit/Delete Submission data”. And you can set the permission to view the 
   administration pages to “Administrator” so that this user could not see it.
 *  Thread Starter [ldeschenes](https://wordpress.org/support/users/ldeschenes/)
 * (@ldeschenes)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/importexport-data-as-csv/#post-8517895)
 * Thanks, Michael.
    Yes, I did buy and install CFDB Editor.
 * I created a shortcode with “Shortcodes Actions and Filters”.
    The page that include
   the shortcode does load but the content is empty (no error reported).
 * My shortcode code is:
    include(“wp-content/plugins/contact-form-7-to-database-
   extension/CF7DBplugin.php”); showShortImportCsvPage;
 * I am not an expert in PHP but I did try the following variations without success:
   
   require_once(ABSPATH . ‘wp-content/plugins/contact-form-7-to-database-extension/
   CF7DBplugin.php’); require(“wp-content/plugins/contact-form-7-to-database-extension/
   CF7DBplugin.php”); and showShortImportCsvPage();
 * What wrong with my code? Please help.
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/importexport-data-as-csv/#post-8517930)
 *     ```
       include('wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php');
       $plugin = new CF7DBPlugin();
       $plugin->showShortImportCsvPage();
       ```
   
 *  Thread Starter [ldeschenes](https://wordpress.org/support/users/ldeschenes/)
 * (@ldeschenes)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/importexport-data-as-csv/#post-8537891)
 * Hi Michael,
    Sorry took me sometime to test it, got busy with something else…
 * I try :
    include(“wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.
   php”); $plugin = new CF7DBPlugin(); $plugin->showShortImportCsvPage(); showShortImportCsvPage();
 * This does not display anything of the page were I put my shortcode
    Also, while
   login as administrator, the admin bar in not shown on that page, Weird
 * What should I change?
    Do I have to add the line “showShortImportCsvPage();”?
   With or without it I get same result.
 * BTW, “Shortcodes Actions and Filters” would not accept the ‘ in
    include(‘wp-
   content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php’);
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/importexport-data-as-csv/#post-8538686)
 * This worked for me:
 *     ```
       include_once(ABSPATH . 'wp-content/plugins/contact-form-7-to-database-extension/CF7DBPlugin.php');
       $plugin = new CF7DBPlugin();
       $plugin->showShortImportCsvPage();
       ```
   
 *  Thread Starter [ldeschenes](https://wordpress.org/support/users/ldeschenes/)
 * (@ldeschenes)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/importexport-data-as-csv/#post-8538793)
 * GREAT! That is working!
    Thanks a lot, Micheal.

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

The topic ‘Import/Export Data as CSV’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

## Tags

 * [import / export CSV](https://wordpress.org/support/topic-tag/import-export-csv/)

 * 8 replies
 * 2 participants
 * Last reply from: [ldeschenes](https://wordpress.org/support/users/ldeschenes/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/importexport-data-as-csv/#post-8538793)
 * Status: not resolved