WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] Use the "export" function in a php script (2 posts)

  1. phate867
    Member
    Posted 1 year ago #

    I see that this plugin has an export function, I gave an eye to code and I came up with this:
    `require_once("wp-load.php");
    require_once("wp-content/plugins/wp-table- reloaded/classes/export.class.php");

    $db = new WP_Table_Reloaded_Export();
    $db->export_format = 'xml';
    $db->table_to_export['data'] = 'TableName';
    $output = $db->export_table();
    echo $output;

    it should print me the xml representation of the table..but it doesn't, can you help me out please?

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post.

    I'm not really sure that this approach is a good idea. First, including WordPress into an external script like this, as this can lead to a lot of overhead. Instead, it should probably be easier to include the desired functionality into a small WordPress plugin.

    So, if you could explain shortly what you are trying to achieve, I'll gladly try to explain the best way to tackle this.

    Also note that his XML representation is rather useless outside of WP-Table Reloaded, as it is not a common XML format, but a special format.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic