🚀 Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home
/
users
/
2
/
fujibow
/
web
/
fujibow.co.jp
/
wp-test
/
wp-content
/
themes
/
fujibow
✏️
Editing: archive.php
<?php get_header(); ?> <?php //情報取得 $cat = get_the_category(); //現在のカテゴリー情報取得 $cat = $cat[0]; //親カテ指定 $cat_name = $cat->name; //カテゴリー名取得 $cat_slug = $cat->slug; //カテゴリースラッグ取得 ?> <main id="archive" class="archive <?php echo $cat_slug; ?>-archive"> <?php // ヘッダー,コンテンツ読み込み $page_header_args = [ 'slug' => 'Archive', 'title' => 'アーカイブ', 'image' => IMG_PATH.'/common/page-header-works.svg', ]; $header_type = 'header'; // ページヘッダーレイアウト get_template_part('template-parts/page', $header_type, $page_header_args); ?> <div class="archive__articles"> <div class="inner"> <?php if (have_posts()) : ?> <ul class="archive__list"> <?php while (have_posts()) : the_post(); ?> <li> <?php $article_args = array( //'class' => 'archive__article', ); get_template_part('template-parts/archive', 'article', $article_args); ?> </li> <?php endwhile; ?> </ul> <?php get_template_part('template-parts/archive-pagination'); ?> <?php else : ?> <p class="no-post">現在お知らせはありません。</p> <?php endif; ?> </div> </div> </main> <?php get_footer(); ?>
💾 Save Changes
❌ Cancel