返信先: メニューに投稿がアーカイブされない

フォーラム 使い方全般 メニューに投稿がアーカイブされない 返信先: メニューに投稿がアーカイブされない

#83005
kirikabu
参加者

投稿者です。archive.phpがアップロードできなかったので、内容をこちらにコピーします。
——————————————

<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<hgroup class=”categoryhead”>
<h1 class=”pagetitle”><?php printf(__(‘%s’, ‘usces’), single_cat_title(”, false)); ?></h1>
<span><?php echo category_description(); ?></span>
</hgroup>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h1 class=”pagetitle”><?php printf(__(‘Posts Tagged ‘%s’’, ‘usces’), single_tag_title(”, false) ); ?></h1>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1 class=”pagetitle”><?php printf(_c(‘Archive for %s|Daily archive page’, ‘usces’), get_the_time(__(‘Y/m/d’))); ?></h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1 class=”pagetitle”><?php printf(_c(‘Archive for %s|Monthly archive page’, ‘uscestheme’), get_the_time(__(‘Y/m/d’))); ?></h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1 class=”pagetitle”><?php printf(_c(‘Archive for %s|Yearly archive page’, ‘uscestheme’), get_the_time(__(‘Y/m/d’))); ?></h1>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h1 class=”pagetitle”><?php _e(‘Author Archive’, ‘uscestheme’); ?></h1>
<?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
<h1 class=”pagetitle”><?php _e(‘Blog Archives’, ‘uscestheme’); ?></h1>
<?php } ?>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post();usces_the_item(); ?>

<?php if (usces_is_skus()) : ?>

<?php usces_crform( usces_the_firstPrice(‘return’), true, false ); ?><?php usces_guid_tax(); ?>

<?php endif; ?>

<!– thumbnail_box –>
<?php endwhile; ?>

<?php if (function_exists(“pagination”)) {
pagination($additional_loop->max_num_pages);
} ?>

<?php else : ?>

<?php if ( is_category() ) : // If this is a category archive ?>
<p><?php echo single_cat_title(”, false); ?><?php _e(‘in not yet registered’, ‘usces’) ?></p>
<?php elseif( is_date() ) : ?>
<p><?php _e(‘Data for this date is not yet registered.’, ‘usces’) ?></p>
<?php elseif( is_author() ) : $userdata = get_userdatabylogin(get_query_var(‘author_name’)); ?>
<p><?php _e(‘Data by’, ‘usces’) ?> <?php echo $userdata->display_name; ?> <?php _e(‘is not yet registered.’, ‘usces’) ?></p>
<?php else : ?>
<p><?php echo __(‘No posts found.’, ‘uscestheme’); ?></p>
<?php endif; ?>

<?php endif; ?>

———————————-
よろしくお願いいたします。