カテゴリー名が出力されない(テーマ:comfy)
-
comfyというテーマを使っています。
但し、テンプレートの見本のように、TOPページ中段の記事がカテゴリー毎に纏められている部分の上部にカテゴリー名が出てきません。テーマ↓
http://deluxethemes.com/comfy/私のサイト
http://ipeta.jp/ソースを見ると、cat_nameを出力するようなっているのですが、
原因がわかりません。
本来であれば、”映画”がページ中段のカテゴリー毎に纏められている部分の上部に出てくるはずなのですが。。お手数ですが、ご意見頂けると助かります。
TOPページのソース↓
——————————————————–
<?php
$leftcategories = explode(‘,’,$deluxe[‘leftcategories’]);
$rightcategories = explode(‘,’,$deluxe[‘rightcategories’]);
?><div class=”column” id=”col1″>
<?php foreach($leftcategories as $section) : ?>
<div class=”cat-widget” id=”<?php print str_replace(‘ ‘, ”, get_cat_name($section)); ?>”><h3>” title=”<?php print get_cat_name($section); ?>”><?php print get_cat_name($section); ?><?php if ($deluxe[‘closewidget’] == 1) : ?><?php endif; ?></h3>
<div class=”container”><?php $getposts = new WP_query(); $getposts->query(‘showposts=’.$deluxe[‘catpostsnum’].’&cat=’.$section); ?>
<?php global $wp_query; $wp_query->in_the_loop = true; ?>
<?php while ($getposts->have_posts()) : $getposts->the_post(); ?>
<div class=”cpost”>
<div class=”thumb”><?php show_thumb($deluxe[‘img_main_w’],$deluxe[‘img_main_h’],$deluxe[‘crop’],$deluxe[‘cropfrom’],$deluxe[‘quality’]); ?></div>
<div class=”info”>” title=”<?php the_title(); ?>” class=”dark_perm”><?php the_title(); ?>
<?php echo teaser(‘excerpt’, 15); ?><div class=”clear”></div><ul class=”ex”>
<li class=”cont”>“><?php _e(‘Continue’,’deluxe’); ?>
<li class=”comm”>#comments”><?php comments_number(__(‘No Comments’,’deluxe’), __(‘1 Comment’,’deluxe’), __(‘% Comments’,’deluxe’)); ?>
<div class=”clear”></div></div><div class=”clear”></div>
</div>
<?php endwhile; ?><?php $getposts = new WP_query(); $getposts->query(‘showposts=’.$deluxe[‘moreitems_n’].’&offset=’.$deluxe[‘catpostsnum’].’&cat=’.$section); ?>
<?php global $wp_query; $wp_query->in_the_loop = true; ?>
<h4><?php _e(‘More Stories’,’deluxe’); ?></h4>
<ul class=”more_stories”>
<?php while ($getposts->have_posts()) : $getposts->the_post(); ?>-
” title=”<?php the_title(); ?>” class=”animate”>
<?php if($deluxe[‘smallimg’] == true) : ?>
<span class=”smallimg”><?php show_thumb_only($deluxe[‘img_more_w’],$deluxe[‘img_more_h’],$deluxe[‘crop’],$deluxe[‘cropfrom’],$deluxe[‘quality’]); ?></span>
<?php endif; ?>
<span class=”smalltitle”><?php the_title(); ?></span>
-
” title=”<?php the_title(); ?>” class=”animate”>
<?php if($deluxe[‘smallimg’] == true) : ?>
<span class=”smallimg”><?php show_thumb_only($deluxe[‘img_more_w’],$deluxe[‘img_more_h’],$deluxe[‘crop’],$deluxe[‘cropfrom’],$deluxe[‘quality’]); ?></span>
<?php endif; ?>
<span class=”smalltitle”><?php the_title(); ?></span>
<?php endwhile; ?>
</div>
<div class=”footer”></div></div>
<?php endforeach; ?>
</div><div class=”column” id=”col2″>
<?php foreach($rightcategories as $section) : ?>
<div class=”cat-widget” id=”<?php print str_replace(‘ ‘, ”, get_cat_name($section)); ?>”><h3>” title=”<?php print get_cat_name($section); ?>”><?php print get_cat_name($section); ?><?php if ($deluxe[‘closewidget’] == 1) : ?><?php endif; ?></h3>
<div class=”container”><?php $getposts = new WP_query(); $getposts->query(‘showposts=’.$deluxe[‘catpostsnum’].’&cat=’.$section); ?>
<?php global $wp_query; $wp_query->in_the_loop = true; ?>
<?php while ($getposts->have_posts()) : $getposts->the_post(); ?>
<div class=”cpost”>
<div class=”thumb”><?php show_thumb($deluxe[‘img_main_w’],$deluxe[‘img_main_h’],$deluxe[‘crop’],$deluxe[‘cropfrom’],$deluxe[‘quality’]); ?></div>
<div class=”info”>” title=”<?php the_title(); ?>” class=”dark_perm”><?php the_title(); ?>
<?php echo teaser(‘excerpt’, 15); ?><div class=”clear”></div><ul class=”ex”>
<li class=”cont”>“><?php _e(‘Continue’,’deluxe’); ?>
<li class=”comm”>#comments”><?php comments_number(__(‘No Comments’,’deluxe’), __(‘1 Comment’,’deluxe’), __(‘% Comments’,’deluxe’)); ?>
<div class=”clear”></div></div><div class=”clear”></div>
</div>
<?php endwhile; ?><?php $getposts = new WP_query(); $getposts->query(‘showposts=’.$deluxe[‘moreitems_n’].’&offset=’.$deluxe[‘catpostsnum’].’&cat=’.$section); ?>
<?php global $wp_query; $wp_query->in_the_loop = true; ?>
<h4><?php _e(‘More Stories’,’deluxe’); ?></h4>
<ul class=”more_stories”>
<?php while ($getposts->have_posts()) : $getposts->the_post(); ?><?php endwhile; ?>
</div>
<div class=”footer”></div></div>
<?php endforeach; ?>
</div>—————————————————————
-
” title=”<?php the_title(); ?>” class=”animate”>
- トピック「カテゴリー名が出力されない(テーマ:comfy)」には新たに返信することはできません。