Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author HelgaTheViking

    (@helgatheviking)

    If there is, I don’t know it. Sorry, that’s beyond the scope of this plugin…. and also beyond my knowledge level.

    Thread Starter jjnimes

    (@jjnimes)

    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. ??

    Plugin Author HelgaTheViking

    (@helgatheviking)

    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.

    Thread Starter jjnimes

    (@jjnimes)

    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.

    Plugin Author HelgaTheViking

    (@helgatheviking)

    I’m sure there is a way, but it isn’t part of the plugin. Something like this might help: https://imtheirwebguy.com/exporting-the-results-of-a-custom-wpdb-query-to-a-downloaded-csv/

    Thread Starter jjnimes

    (@jjnimes)

    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?

    Plugin Author HelgaTheViking

    (@helgatheviking)

    Please review the source code. The query is created here and the resulting list of authors is here.

    Thread Starter jjnimes

    (@jjnimes)

    Thank you I’ll look into it!

    Thread Starter jjnimes

    (@jjnimes)

    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?

    Plugin Author HelgaTheViking

    (@helgatheviking)

    $sul_users is not passed to the templates. The template gets a global $user see here and it is defined in the foreach loop.

    Thread Starter jjnimes

    (@jjnimes)

    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.

    Plugin Author HelgaTheViking

    (@helgatheviking)

    I didn’t read their tutorial fully, so no I don’t know how it might work.

    Thread Starter jjnimes

    (@jjnimes)

    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’.

    Plugin Author HelgaTheViking

    (@helgatheviking)

    That is the search field, correct.

    Thread Starter jjnimes

    (@jjnimes)

    key => ‘as’?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Export list into file’ is closed to new replies.