HEX
Server: Apache
System: Linux vps75080.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: reachcon (1003)
PHP: 7.2.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/reachcon/www/wp-content/themes/reach-connects/category.php
<?php
// The template for displaying Category pages Used to display archive-type pages for posts in a category.
get_header();
?>
<h1 class="dBlue"><?php printf( __( 'Category Archives: %s', 'omada' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
<div class="spc"></div>
<div class="grid-x align-center">
	<div class="large-10 cell">
		<div class="grid-x align-center grid-padding-x">
			<div class="cell large-9">
				<?php if ( have_posts() ){ 
					echo '<div id="blog-posts">';
						while ( have_posts() ){ 
							the_post();
							echo '<div id="post-'.get_the_ID().'" '. get_post_class().'>';
									
								// Column 2
								echo '<header><h2 class="post-heading"><a href="'.get_the_permalink(get_the_ID()).'" rel="bookmark">'.get_the_title(get_the_ID()).'</a></h2></header>';
								echo '<small>'.get_the_date( 'F j, Y' ).'</small>';
								echo '<div class="post-content">';
								$omadaLayout->customExcerpt(get_the_ID(),50,true,true); 
								if(get_the_category()){
									echo '<small class="post-meta"><strong>Categories: </strong>'; the_category(', '); echo '</small>';
								}
								wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'omada' ), 'after' => '</div>' ) );
								echo '</div>';
								echo '<p class="text-right"><a href="'.get_the_permalink(get_the_ID()).'" class="button">Continue Reading</a></p>';
							echo '</div>';
							echo '<hr>';
						}
					echo '</div>';
					$omadaLayout->paginationLinkNumbers();
					
				}else{
					echo '<article id="post-0" class="post no-results not-found">';
						echo '<header><h1 class="post-heading">Nothing Found</h1></header>';
						echo '<div class="post-content"><p>No results were found. Perhaps searching will help find a related post.</p>';
							get_search_form();
						echo '</div>';
					echo '</article>';
				} ?>
			</div>
			<div class="cell medium-3">
			<?php dynamic_sidebar( 'defaultsidebar' ); ?>
		</div>
		</div>
	</div>
</div>
<?php get_footer(); ?>