-
-
Save tokyobear/3264e8c136947af9c96919215aa647aa to your computer and use it in GitHub Desktop.
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 | |
return array( | |
'post_type' => 'japan', | |
'posts_per_page' => 12, | |
'category_name' => 'museums', | |
'orderby' => 'title', | |
'order' => 'asc', | |
); | |
>> Display code | |
<?php while ( have_posts() ) : the_post(); ?> | |
<div class="fwp-container"> | |
<?php echo '<a href="' . get_permalink( $_post->ID ) . '" title="' . esc_attr( $_post->post_title ) . '">';?> | |
<?php echo get_the_post_thumbnail( $post_id, 'square', array( 'class' => 'fwp-image' ));?> | |
<?php echo '</a>';?> | |
<div class="fwp-text"> | |
<div class="fwp-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div> | |
<div class="fwp-tags"><?php echo get_the_tag_list('',' ★ ','');?></div> | |
<?php the_excerpt();?> | |
</div> | |
</div> | |
<?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment