| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/KnowledgeBase/wp-content/themes/alera/template-parts/ |
Upload File : |
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Alera
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( is_singular() ) : ?>
<header class="post-header">
<?php the_title( '<h1 class="post-title">', '</h1>' ); ?>
<?php alera_post_meta(); ?>
</header>
<?php alera_post_thumbnail(); ?>
<?php else : ?>
<?php alera_post_thumbnail(); ?>
<header class="post-header">
<?php the_title( '<h2 class="post-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
<?php alera_post_meta(); ?>
</header>
<?php endif; ?>
<div class="post-content">
<?php
if (is_singular()) :
the_content();
else :
the_excerpt();
endif;
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'alera' ),
'after' => '</div>'
) );
?>
</div>
<?php if ( ! is_singular() ) : ?>
<a href="<?php echo esc_url( get_permalink() ); ?>" class="button button-bordered"><?php echo esc_html__( 'Read More', 'alera' ); ?></a>
<?php endif; ?>
</article>