Smash Balloon Social Photo Feed(旧instagram feed)のdb情報から表示
Smash Balloon Social Photo Feed
テンプレートページの適当な所に記述
1 2 3 4 5 6 7 8 9 10 11 12 |
<?php do_shortcode('[instagram-feed feed=1]');//echo不要、新しい情報のため使用 global $wpdb; $table_name = $wpdb->prefix.'sbi_instagram_posts'; $rows = $wpdb->get_results("SELECT id, json_data FROM $table_name"); $encryption = new SB_Instagram_Data_Encryption(); foreach($rows as $row){ echo '<pre>'.print_r(json_decode($encryption->decrypt($row->json_data),true), true).'</pre>'; } ?> |