Remote page with the posts table can be created on any another site, for example sites of your partners where they spread your posts as referrals. Not depends on CMS and can be placed even on a simple HTML template page.
See inbuilt posts table in simple HTML template here.
To create:
- create page on your site and select template "TABLEON Blank Page"
- place there TABLEON shortcode, for example: [tableonĀ id=4]
- you can give your partners next code:12<div id='tableon-remote-place-here' class="container"></div><script src="https://YOUR_SITE.com/?tableon-remote-page=my-remote-page&width=100%&height=1200px&anchor=tableon-remote-place-here&tableon_refferal=demo_ref"></script>
- tableon-remote-page: slug of the page you created
- width:table width on the remote site, examples: 100%, 500px
- height: table height on the remote site
- anchor: ID of the <div> container where posts table will be loaded on the remote site
- tableon_refferal: here should be placed referral nickname of your partner
- Replace YOUR_SITE.com to domain of your WordPress site where TABLEON is installed
- For remote referrals should be created special column with the button inside by the next code:1234567891011121314151617181920212223242526add_action('tableon_profile_extend', function($profile, $action_name) {if ($action_name === 'tableon_default_tables') {$profile['remote_refferals'] = ['title' => 'R-Refferal btn','order' => FALSE,'action' => function($post_id) {$refferal = 'xxx';$link_data = TABLEON_HELPER::get_link_data();if (isset($link_data['tableon_refferal'])) {$refferal = $link_data['tableon_refferal'];}return TABLEON_HELPER::draw_html_item('a', ['href' => "https://YOUR_SITE.com?ref={$refferal}&post_id={$post_id}",'class' => 'tableon-btn','target' => '_blank'], 'Get it for free');}];}return $profile;}, 10, 2);
To make remote table more quick:
- download next file: tableon-remote.php
- unzip and upload file tableon-remote.php to your WordPress site folder
- in javascript link use: https://YOUR_SITE/tableon-remote.php instead of https://YOUR_SITE