feat: add archive and single templates for all custom post types
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* БИТ.WMS Child Theme — archive-webinar.php
|
||||
*
|
||||
* Archive template for the 'webinar' custom post type.
|
||||
*
|
||||
* @package bitwms-child
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
get_header();
|
||||
?>
|
||||
<main class="archive-page">
|
||||
<div class="container">
|
||||
<h1 class="archive-page__title"><?php esc_html_e( 'Вебинары', 'bitwms-child' ); ?></h1>
|
||||
<div class="content-grid">
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<?php get_template_part( 'templates/content-card' ); ?>
|
||||
<?php endwhile; ?>
|
||||
<?php else : ?>
|
||||
<p><?php esc_html_e( 'Вебинары не найдены.', 'bitwms-child' ); ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php the_posts_pagination( array( 'prev_text' => '←', 'next_text' => '→' ) ); ?>
|
||||
</div>
|
||||
</main>
|
||||
<?php get_footer();
|
||||
Reference in New Issue
Block a user