Yetixx
Yetixx
Server: nginx/1.28.0
System: Linux instance-rr9enuui 6.1.0-15-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.66-1 (2023-12-09) x86_64
User: www (1000)
PHP: 8.0.26
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.byte123.top/wp-content/themes/ripro-v5/taxonomy-series.php
<?php

get_header();

$cat_id = get_queried_object_id();

$meta_bg = get_term_meta($cat_id, 'bg-image', true);
$bg_img = (!empty($meta_bg)) ? $meta_bg : zb_get_thumbnail_url();


$archive_item_config = zb_get_archive_item_config($cat_id);

// zb_dump($cat_id);

?>


<section class="container">

	<div class="archive-series-top p-3 mb-4 bg-white rounded-2">


		<div class="row">
			<div class="col-12 col-md-4">
				<div class="img-box mb-3 mb-md-0">
	                <img class="lazy" src="<?php echo esc_attr($bg_img);?>" alt="<?php the_archive_title( '', '' );?>" />
	            </div>
			</div>
			<div class="col-12 col-md-8">
				<div class="desc-box">
	                <?php
		            the_archive_title( '<h3 class="archive-title mb-3">', '</h3>' );

		            the_archive_description();
		            ?>
	            </div>
			</div>

			<div class="col-12 position-relative"> <a class="more-a" href="<?php echo esc_url(home_url('/series'));?>">更多专题></a> </div>

		</div>

	</div>



	<div class="posts-warp row <?php echo esc_attr($archive_item_config['row_cols_class']); ?>">
		<?php if (have_posts()):
			while (have_posts()): the_post();
				get_template_part('template-parts/loop/item', get_post_format(), $archive_item_config);
			endwhile;
		else:
			get_template_part('template-parts/loop/item', 'none');
		endif;
		?>
	</div>


	<?php zb_pagination(array(
		'range'     => 4,
		'nav_class' => 'page-nav mt-4',
		'nav_type'  => _cao('site_page_nav_type', 'click'),
	));?>

</section>

<?php
get_footer();