Skip to content

Commit

Permalink
Added two widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
Lwyrup committed Apr 24, 2017
1 parent 0ac5473 commit 2f674ef
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
20 changes: 17 additions & 3 deletions page-may-4th-landing-page.php
Expand Up @@ -55,7 +55,12 @@
<div class="outerContainer">
<div class="widgets l-widgets">
<div class="widgets__youtube l-widgets__youtube">
<?php echo do_shortcode( '[ytp_video source="81LseY89j9A"]' ); ?>
<?php if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile;
endif;
?>
</div>
<div class="widgets__slideshow l-widgets__slideshow">
<div class="slideShow js-slideShow">
Expand Down Expand Up @@ -94,12 +99,21 @@
<a class="slideShow__article" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php endwhile;
endif;
wp_reset_postdata();
wp_reset_query();
?>
</div>
</div>
</div>
<div class="widgets__spotify l-widgets__spotify"></div>
<div class="widgets__spotify l-widgets__spotify">
<?php if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?>

<?php the_field("spotify"); ?>

<?php endwhile;
endif;
?>
</div>
</div>

<?php get_footer(); ?>
3 changes: 1 addition & 2 deletions page.php
Expand Up @@ -13,8 +13,7 @@
</div>
</div>

<?php endwhile; else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endwhile; ?>
<?php endif; ?>

<?php get_footer(); ?>

0 comments on commit 2f674ef

Please sign in to comment.