Set up wp_cron jobs to occur every minute, half-hour, hour, daily, or weekly. Saves instagram image data to database for use in custom theme development.
Saves image src's for full-size, low-resolution and thumbnail sizes. Also saves the like count for an image at the time of the api query, and will update this count should the image be part of a later query.
inst_reaper_get_harvest()
- returns array of image data for every image saved in the cron
- id [the unique ID of the image in the Wordpress database]
- inst_id [the unique ID of the image as supplied by Instagram]
- url [the url link to the image on Instagram]
- src [the full size image url]
- src_low_res [the smaller size image url]
- src_thumb [the thumbnail size image url]
- likes_count [the number of favories or likes of the image]
- comments count [the number of comments of the image]
- date_created [the date the image was created on Instagram]
example:
`
$images = inst_reaper_get_harvest();
foreach ($images as $image) { ?>
<a href="<?php echo $image['url']; ?>">
<img src="<?php echo $image['src']; ?>" />
<a href="<?php echo $image['url']; ?>">
<img src="<?php echo $image['src']; ?>" />
'username',
'username' => 'dvl',
'count' => '30'
);
$images = inst_reaper_get_photos($args);
foreach ($images as $image) { ?>
<a href="<?php echo $image['url']; ?>">
<img src="<?php echo $image['src']; ?>" />
<a href="<?php echo $image['url']; ?>">
<img src="<?php echo $image['src']; ?>" />
<a href="<?php echo $image['url']; ?>">
<img src="<?php echo $image['src']; ?>" />
'username',
'username' => 'dvl',
'count' => '30'
);
$images = inst_reaper_get_photos($args);
foreach ($images as $image) { ?>
<a href="<?php echo $image['url']; ?>">
<img src="<?php echo $image['src']; ?>" />
<?php }
`