Add basic list archive template

This commit is contained in:
Ben Goldsworthy 2021-02-06 15:09:22 +00:00
parent dd6e4932f3
commit 0a2e902c89
3 changed files with 68 additions and 0 deletions

View 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>