Funkstagram: A Wordpress plugin by Funkhaus
___ _ _ _ _ _ __
| __| | | | \| | |/ /
| _|| |_| | .` | ' <
|_| _\___/|_|\_|_|\_\
| || | /_\| | | / __|
| __ |/ _ \ |_| \__ \
|_||_/_/ \_\___/|___/
Funkstagram is a simple Instagram image importer for Wordpress. Pick users and/or tags and automatically load images into the Wordpress media library.
Tools > Funkstagram
#awesome
.) Status gives you an extra layer so images can be approved in the backend before showing up on the front.Users to import
field.Filter by tags
field. If importing by user, only images with these tags from those particular users will be imported. If no users are specified, all images posted to Instagram with those particular tags will be imported.
Import Now
button to test importing. This may take a while if importing a large number of photos.enable auto-import
box at the top of the screen and save changes. Images will now be imported automatically.
http://example.com/wp-admin/admin-ajax.php?action=funkstagram_import
_When Funkstagram encounters a video post, it will automatically import the thumbnail of the video into the media library just as it does with all photo posts. For videos however it will also assign metadata to the attachment with the key instagram_video_url
and the value will be the URL of the video as hosted on instagram's servers. If you'd like to support video playback on the front-end of your site, just check for any instagram_video_url
values while you're looping through the imported images and use the URL to provide playback in whatever way you prefer.
Using the image status feature, all images will be given a custom status, defaulting to 'draft'. The status of each image can be changed in the media library, or from
within an Insert Media
popup page. In this way images can be approved before they show on the front of the site, but first a loop needs to be set up that queries
for published images only. This can be acheived by using the fgram_status
meta key. An example loop might look like the one below:
$args = array(
'post_parent' => $post->ID,
'post_type' => 'attachment',
'post_mime_type' => 'image',
'posts_per_page' => -1,
'meta_key' => 'fgram_status',
'meta_value' => 'published',
'post_type' => 'attachment'
);
$images = get_posts($args);
This will load all imported images into the $images
variable. You can then loop through and display them as you see fit.