Title: Function string
Last modified: August 31, 2016

---

# Function string

 *  Resolved [nonamn](https://wordpress.org/support/users/nonamn/)
 * (@nonamn)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/function-string/)
 * Is there a function string I could use instead of the shortcode?
 * Fo rexample; <?php do_shortcode(‘[ap_instagram_feed]’); ?>
 * Thanks so much!
 * [https://wordpress.org/plugins/instagram-slider-widget/](https://wordpress.org/plugins/instagram-slider-widget/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [nonamn](https://wordpress.org/support/users/nonamn/)
 * (@nonamn)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/function-string/#post-7322772)
 * 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.
 *  [JR Web Studio](https://wordpress.org/support/users/jetonr/)
 * (@jetonr)
 * [10 years ago](https://wordpress.org/support/topic/function-string/#post-7323053)
 *     ```
       $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 );
       ```
   
 *  [JR Web Studio](https://wordpress.org/support/users/jetonr/)
 * (@jetonr)
 * [10 years ago](https://wordpress.org/support/topic/function-string/#post-7323054)
 *     ```
       $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 );
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Function string’ is closed to new replies.

 * ![](https://ps.w.org/instagram-slider-widget/assets/icon-256x256.png?rev=2602786)
 * [Social Slider Feed – Social Media Feed & Gallery Widgets](https://wordpress.org/plugins/instagram-slider-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/instagram-slider-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/instagram-slider-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/instagram-slider-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instagram-slider-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instagram-slider-widget/reviews/)

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)

 * 3 replies
 * 2 participants
 * Last reply from: [JR Web Studio](https://wordpress.org/support/users/jetonr/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/function-string/#post-7323054)
 * Status: resolved