This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="pagination"> | |
<?php | |
$prev_post = get_previous_post(true, '', 'taxonomy'); | |
$next_post = get_next_post(true, '', 'taxonomy'); | |
?> | |
<?php if (!empty( $prev_post )): ?> | |
<div class="prev"> | |
<a href="<?php echo get_permalink( $prev_post->ID ); ?>"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('a#nav-btn').click(function() { | |
$(this).toggleClass('nav-btn-active'); | |
$('#nav').stop().slideToggle(200).toggleClass('nav-active'); | |
return false; | |
}); | |
$('a#login-btn').click(function() { | |
$(this).toggleClass('login-btn-active'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$movies = new WP_Query( | |
array( | |
'post_type' => 'movie_reviews', | |
'order' => 'DESC', | |
'orderby' => 'date' | |
) | |
); | |
<?php while ( $movies->have_posts() ) : $movies->the_post(); ?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(get_field('relationship')): ?> | |
<h2>Related posts</h2> | |
<ul id="portfolio-grid"> | |
<?php foreach(get_field('relationship') as $related): ?> | |
<li> | |
<a href="<?php echo get_permalink($related->ID); ?>" title="<?php echo get_the_title($related->ID) ?>"> | |
<img src="<?php the_field('image_src', $related->ID); ?>" alt="" /> <span class="caption"><?php the_field('image_caption', $related->ID); ?></span> | |
</a> | |
</li> |