Skip to content
wiki.fftac.org

Single

**Site relevance:** FFTAC.org

**Memory type:** theme source memory

**Source path:** FFTAC/wp-content/themes/fftac-who-we-are/single.php

**Size:** 2 KB

Summary

@package FFTAC Who We Are

Source Preview

This source file is short enough to preview directly on its source-memory page.

<?php
/**
 * Single post template.
 *
 * @package FFTAC_Who_We_Are
 */

get_header();
?>
<main id="primary" class="main">
	<?php
	while ( have_posts() ) :
		the_post();
		?>
		<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
			<header class="entry-header">
				<p class="archive-kicker"><?php esc_html_e( 'Entry', 'fftac-who-we-are' ); ?></p>
				<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
				<div class="entry-meta">
					<time datetime="<?php echo esc_attr( get_the_date( DATE_W3C ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time>
				</div>
			</header>

			<?php if ( has_post_thumbnail() ) : ?>
				<div class="entry-content">
					<figure class="post-thumbnail"><?php the_post_thumbnail( 'large' ); ?></figure>
				</div>
			<?php endif; ?>

			<div class="entry-content">
				<?php
				the_content();
				wp_link_pages(
					array(
						'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'fftac-who-we-are' ),
						'after'  => '</div>',
					)
				);
				?>

				<footer class="entry-footer">
					<?php
					$categories_list = get_the_category_list( esc_html__( ', ', 'fftac-who-we-are' ) );
					if ( $categories_list ) {
						printf(
							'<span class="cat-links">%1$s %2$s</span>',
							esc_html__( 'Filed under:', 'fftac-who-we-are' ),
							wp_kses_post( $categories_list )
						);
					}

					$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'fftac-who-we-are' ) );
					if ( $tags_list ) {
						printf(
							'<span class="tags-links"> %1$s %2$s</span>',
							esc_html__( 'Tagged:', 'fftac-who-we-are' ),
							wp_kses_post( $tags_list )
						);
					}

					edit_post_link( esc_html__( 'Edit', 'fftac-who-we-are' ), ' <span class="edit-link">', '</span>' );
					?>
				</footer>
			</div>
		</article>

		<div class="post-navigation section narrow">
			<?php the_post_navigation(); ?>
		</div>
		<?php
		if ( comments_open() || get_comments_number() ) {
			comments_template();
		}
	endwhile;
	?>
</main>
<?php
get_footer();