• Resolved ltcommander

    (@ltcommander)


    Hi,

    I use a Perl script to post to WordPress. I really want to use WP-Table-Reloaded but I wonder if it’s possible to import a HTML table into the database and get the table ID using a function.

    By that I mean:

    sub GetTableShortCode{
    my ($html)=@_;

    return $tableShortCode;
    }

    sub main{
    my $html = # this contains the entire table
    my $Shortcode=GetTableShortCode(“$html”);
    }

    and then I post something using the table short code..

    Can I use wp-table-reloaded programatically?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    that is definitely an interesting use case!

    Unfortunately, I have to disappoint you: WP-Table Reloaded does not offer an API like this, which could be used for accessing the plugins via other means. Sorry.

    Best wishes,
    Tobias

    Thread Starter ltcommander

    (@ltcommander)

    Thanks Tobias.

    Hmm.. I really want to use it that way. What if I write to the wp-options table directly? Would that work?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you can of course try to manually write to wp_options directly, just be extra careful 🙂 You might want to take a look at the WP-Table Reloaded source code to see how the data format is structured.

    Regards,
    Tobias

    Thread Starter ltcommander

    (@ltcommander)

    ah okay! Thank you Tobias!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure, no problem, you are very welcome!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Automating table import’ is closed to new replies.