Re: [解決済み] usces-cartなどプラグインで用意されたテンプレート内でのthe_contentの挙動について
フォーラム › 使い方全般 › [解決済み] usces-cartなどプラグインで用意されたテンプレート内でのthe_contentの挙動について › Re: [解決済み] usces-cartなどプラグインで用意されたテンプレート内でのthe_contentの挙動について
2012年7月30日 7:40 AM
#65105
参加者
念のため、現在使用している「sidebar.php」の全文も下記しておきます。あわせてご確認頂ければ幸いです。
<section id="side">
<ul class="sNav">
<?php // ヴィジェットを表示
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) :
endif;
?>
</ul>
<h2 class="heading">■Topics</h2>
<ul class="news">
<?php $args = new wp_query(array('post_type' => 'topic')); ?>
<?php if ($args->have_posts()) : while ($args->have_posts()) : $args->the_post(); ?>
<li>
<h3 class="postTitle"><?php the_title(); ?></h3>
<?php remove_filter('the_excerpt',array($usces,'filter_cartContent'),20); ?>
<?php remove_filter('the_content',array($usces,'filter_cartContent'),20); ?>
<div class="postContent"><?php the_content(); ?></div>
</li>
<?php endwhile; else: ?>
<li><?php echo "表示できるトピックがありません。" ; ?></li>
<?php endif; wp_reset_query(); ?>
</ul>
<div class="blog">
<a href="#"><img src="<?php echo get_template_directory_uri(); ? />/images/side_blog.jpg"></a>
</div>
</section>