wp_back/wp-content/themes/simple-theme/blog-posts/default-plugin-ajax-template.php

14 lines
430 B
PHP
Raw Normal View History

2024-05-20 15:37:46 +03:00
<li class="alm-item<?php if ( ! has_post_thumbnail() ) { echo ' no-img'; } ?>">
<?php
$name = get_the_author_meta('display_name');
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'alm-thumbnail' );
}
?>
<h3>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3>
<p class="entry-meta"><?php the_time( 'F d, Y' ); ?></p>
<?php the_excerpt(); ?>
<p class=""><?php echo $name; ?></p>
</li>