Export list into file
-
Is there a way to export the list into csv or excel file?
-
If there is, I don’t know it. Sorry, that’s beyond the scope of this plugin…. and also beyond my knowledge level.
It would be very useful specially for documenting the list. Thank you for fast reply by the way. I hope someone could create it for this plugin or recommend something. 🙂
Maybe that someone could be you!? 🙂 I don’t think I understand the use case yet, but I’m open to pull requests at github if you figure it out.
is there a way to pull off the query being processed by the plugin when searching? its the only need for exporting the list into a csv file.
I’m sure there is a way, but it isn’t part of the plugin. Something like this might help: http://imtheirwebguy.com/exporting-the-results-of-a-custom-wpdb-query-to-a-downloaded-csv/
i think you didn’t understood my question though hehehe i just need to get the whole query being produced using your plugin to store it in a variable since you do have default that i can’t found it anywhere then my custom query that is included in the functions.php. now how can i found the whole query itself?
Thank you I’ll look into it!
On your given, I found the variable query itself.
if ( false === ( $sul_users = get_transient( $transient_name ) ) ) { // the query itself $sul_users = new WP_User_Query( $args ); set_transient( $transient_name, $sul_users, DAY_IN_SECONDS * 30 ); }Now, how can I get the value of $sul_users to display it on the page where the table is presented? How do they connect if the template files were in the theme’s directory?
$sul_usersis not passed to the templates. The template gets a global$usersee here and it is defined in the foreach loop.On the given link for CSV export, do you know how to execute it when I created an Export button inside the search-author.php then the action of the form will be the created separate file for that code? I named the file as export-csv.php then I placed it inside the templates folder with the search-author.php.
I didn’t read their tutorial fully, so no I don’t know how it might work.
What is the key in wp user query of the default search field? I found only in your script is the post name of ‘as’.
That is the search field, correct.
key => ‘as’?
The topic ‘Export list into file’ is closed to new replies.