...
 
Commits (2)
...@@ -15,7 +15,7 @@ $post_id = $post->ID; ...@@ -15,7 +15,7 @@ $post_id = $post->ID;
<?php if ( has_post_thumbnail() ) { ?> <?php if ( has_post_thumbnail() ) { ?>
<div class="featured-image"> <div class="featured-image">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'colormag-featured-image' ); ?></a> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'colormag-featured-post-medium' ); ?></a>
</div> </div>
<?php } ?> <?php } ?>
......
...@@ -5,7 +5,7 @@ get_header(); ?> ...@@ -5,7 +5,7 @@ get_header(); ?>
<?php <?php
$args = array( $args = array(
'ignore_sticky_posts' => 1, 'ignore_sticky_posts' => 1,
'posts_per_page'=> 15 'posts_per_page'=> 16
); );
if ( $paged > 1 ) { if ( $paged > 1 ) {
$args['paged'] = $paged; $args['paged'] = $paged;
......
...@@ -103,7 +103,7 @@ get_header(); ?> ...@@ -103,7 +103,7 @@ get_header(); ?>
if ( is_page( 'Residencias' ) || is_page( 'Egonaldiak' ) ) { // if page is Residencias if ( is_page( 'Residencias' ) || is_page( 'Egonaldiak' ) ) { // if page is Residencias
?> ?>
<h2 id="activos" class="subsection"><span><?php echo _e("Active residency","colormag-child"); ?></span></h2> <h2 id="activos" class="subsection"><span><?php echo _e("Active residencies","colormag-child"); ?></span></h2>
<?php <?php
...@@ -146,15 +146,15 @@ get_header(); ?> ...@@ -146,15 +146,15 @@ get_header(); ?>
// Extracted from https://wordpress.stackexchange.com/questions/346/loop-through-custom-taxonomies-and-display-posts // Extracted from https://wordpress.stackexchange.com/questions/346/loop-through-custom-taxonomies-and-display-posts
// Gets every "category" (term) in this taxonomy to get the respective posts // Gets every "category" (term) in this taxonomy to get the respective posts
$terms = get_terms( "yr" ); $terms = array_reverse ( get_terms( "yr" ) );
if ( is_page( 'Residencias' ) || is_page( 'Egonaldiak' ) ) { // Only for Residencias if ( is_page( 'Residencias' ) || is_page( 'Egonaldiak' ) || is_page( 'Residencies' ) ) { // Only for Residencias
echo '<hr style="clear:both;">'; echo '<hr style="clear:both;">';
?> ?>
<h2 id="archivo" class="subsection"><span><?php echo _e("Residency Archive","colormag-child"); ?></span></h2> <h2 id="archivo" class="subsection"><span><?php echo _e("Residencies Archive","colormag-child"); ?></span></h2>
<div class="widget widget_featured_posts widget_featured_posts_vertical widget_featured_meta clearfix"> <div class="widget widget_featured_posts widget_featured_posts_vertical widget_featured_meta clearfix">
...@@ -166,7 +166,7 @@ get_header(); ?> ...@@ -166,7 +166,7 @@ get_header(); ?>
echo "<h3>".$term->slug."</h3>"; echo "<h3>".$term->slug."</h3>";
$args = array( $args = array(
'post_type' => 'pr', //sets post type to "Project" 'post_type' => 'pr', //sets post type to "Project"
'order' => 'DESC', 'order' => 'ASC',
'posts_per_page'=> -1, 'posts_per_page'=> -1,
'tax_query' => array( 'tax_query' => array(
'relation' => 'AND', 'relation' => 'AND',
......