HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpamazingsecret/wp-content/themes/porto/views/category/default.php
<?php
/**
 * The post category default template
 *
 * @since      6.4.0
 */
defined( 'ABSPATH' ) || die;

global $porto_post_image_size;

if ( empty( $porto_post_image_size ) ) {
	$porto_post_image_size = 'full';
}

$term = get_queried_object();
$cat_img_id = porto_get_image_id( esc_url( get_metadata( $term->taxonomy, $term->term_id, 'category_image', true ) ) );
$post_class = 'porto-cat';
if ( ! empty( $post_classes ) ) {
	$post_class .= ' ' . trim( $post_classes );
}
?>
<div class="<?php echo esc_attr( $post_class ); ?>">
<?php if ( $cat_img_id ) : ?>
	<figure>
		<?php echo wp_get_attachment_image( $cat_img_id, $porto_post_image_size ); ?>
	</figure>
<?php endif; ?>
<h3 class="porto-post-title"><a href="<?php echo esc_url( get_term_link( $term ) ); ?>"><?php esc_html( $term->name ); ?></a></h3>
</div>