Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Template part for displaying the instagram Feed. Dependent upon Smashballoon's instagram feed pro
* @link
* @package Prana
// settings
$index = $template_args['index'];
// content
$my_account = get_field( 'instagram_username');
<div id="<?php echo 'module-' . $index; ?>" class="module module-instagram <?php echo 'module-' . $index; ?> no-image">
<section class="instagram-info">
<div class="container">
<a href="<?php echo $my_account; ?>" target="_blank" class="instagram-name">
<img src="<?php echo get_template_directory_uri(); ?>/img/instagram-green-icon.svg" alt="instagram">
@<?php echo $my_account; ?>
<section class="instagram-pics">
<?php echo do_shortcode( '[instagram-feed user=' . $my_account. ']' ); ?>
<section class="instagram-pics-slider visible-xs visible-sm">
</div><!-- /.module-full-width-cta -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment