Hi,
I’m afraid that this is not possible.
WP-Table Reloaded can only access tables which are stored in the “wp_options” table of the current blog. As the plugin is using the “Options API”, there is no easy way to grab an option value from a different database or database table. Sorry.
Instead of using an iframe you could also simply use a PHP function like file_get_contents()
, to get the table HTML with a HTTP request and display it “natively”.
Or, maybe even simpler: Why don’t you just export the table from site 1 (e.g. as CSV) and import it again on site 2?
Best wishes,
Tobias
Thanks Tobias,
the content is constantly updated, so a singular export won’t do the trick. i’ll look into the php function, thanks for the tip
d
Hi,
yeah, then the export/import would really be a lot of work…
Some more on the file_get_contents()
: To show the table on site 2, use that function to grab the HTML with the table from site 1 (by using the URL to the page with the table from site 1 as the parameter). Then, you can “filter” out the table HTML with a small regular expression and display it on site 2. You might also want to think about a small caching function, which you can easily add with WordPress Transients (see e.g. http://alexking.org/blog/2010/09/29/using-wordpress-transients-external-data).
Best wishes,
Tobias