Thread Starter
nonamn
(@nonamn)
Also, I am running the latest versions, if that’s to any help. But this is not an “issue” with the plugin, it’s working wonders for me, just wondering if theres a function string so I can display this within a template / theme file.
$username = isset( $args['username'] ) && !empty( $args['username'] ) ? $args['username'] : false;
$hashtag = isset( $args['hashtag'] ) && !empty( $args['hashtag'] ) ? $args['hashtag'] : false;
$source = isset( $args['source'] ) && !empty( $args['source'] ) ? $args['source'] : 'instagram';
$attachment = isset( $args['attachment'] ) ? true : false;
$template = isset( $args['template'] ) ? $args['template'] : 'slider';
$orderby = isset( $args['orderby'] ) ? $args['orderby'] : 'rand';
$images_link = isset( $args['images_link'] ) ? $args['images_link'] : 'local_image_url';
$custom_url = isset( $args['custom_url'] ) ? $args['custom_url'] : '';
$images_number = isset( $args['images_number'] ) ? absint( $args['images_number'] ) : 5;
$columns = isset( $args['columns'] ) ? absint( $args['columns'] ) : 4;
$refresh_hour = isset( $args['refresh_hour'] ) ? absint( $args['refresh_hour'] ) : 5;
$image_size = isset( $args['image_size'] ) ? $args['image_size'] : 'large';
$image_link_rel = isset( $args['image_link_rel'] ) ? $args['image_link_rel'] : '';
$image_link_class = isset( $args['image_link_class'] ) ? $args['image_link_class'] : '';
$controls = isset( $args['controls'] ) ? $args['controls'] : 'prev_next';
$animation = isset( $args['animation'] ) ? $args['animation'] : 'slide';
$caption_words = isset( $args['caption_words'] ) ? $args['caption_words'] : 100;
$slidespeed = isset( $args['slidespeed'] ) ? $args['slidespeed'] : 7000;
$description = isset( $args['description'] ) ? $args['description'] : array();
$widget_id = isset( $args['widget_id'] ) ? $args['widget_id'] : preg_replace( '/[^0-9]/', '', $this->id );
do_action( 'jr_instagram', $args );
$args = array(
'search_for' => 'username',
'username' => 'vildanezeneli',
'hashtag' => '',
'source' => 'instagram',
'attachment' => 0,
'template' => 'slider',
'images_link' => 'image_url',
'custom_url' => '',
'orderby' => 'rand',
'images_number' => 5,
'columns' => 4,
'refresh_hour' => 5,
'image_size' => 'large',
'image_link_rel' => '',
'image_link_class' => '',
'controls' => 'prev_next',
'animation' => 'slide',
'caption_words' => 100,
'slidespeed' => 7000,
'description' => array( 'username', 'time','caption' ),
'widget_id' => rand(100,100000)
);
do_action( 'jr_instagram', $args );