Add basic list archive template
This commit is contained in:
parent
dd6e4932f3
commit
0a2e902c89
3 changed files with 68 additions and 0 deletions
23
template-parts/content-list-simple.php
Normal file
23
template-parts/content-list-simple.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
/**
|
||||
* The template part for displaying lists of simple items.
|
||||
*
|
||||
* @package Omphaloskepsis
|
||||
* @since Omphaloskepsis 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<li id="<?php echo esc_attr( get_the_ID() ); ?>" <?php post_class(); ?>>
|
||||
<a class="item" href="<?php echo esc_url( get_the_permalink() ); ?>">
|
||||
<?php echo wp_kses_post( get_the_title() ); ?>
|
||||
<?php
|
||||
$subtitle = get_post_meta( get_the_ID(), 'Subtitle', true );
|
||||
if ( $subtitle ) :
|
||||
?>
|
||||
: <?php echo wp_kses_post( $subtitle ); ?>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
</a>
|
||||
</li>
|
Reference in a new issue