このテーマのテンプレートを Wordpress テーマ用に編集しようとしています: http://demo.fabthemes.com/financio/ 「ブログから」コンテナで、最新のエントリをすべて表示したくありません。私は学習過程にいるので、正確な解決策は必要ありません。正しい方向に向けてくれる人が必要なだけです。
質問: スライダーが特定のルーブリックのエントリを表示するようにコードを変更するにはどうすればよいですか? 何かを変える必要があるような気がする
"$the_query->have_posts() ) : $the_query->the_post();"
<div id="timer1" class="timer"></div>
<div id="carslide">
<?php $the_query = new WP_Query('posts_per_page=9' );
while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="post slidepost" id="post-<?php the_ID(); ?>">
<?php
$thumb = get_post_thumbnail_id();
$img_url = wp_get_attachment_url( $thumb,'full' ); //get full URL to image (use "large" or "medium" if the images too big)
$image = aq_resize( $img_url, 300, 150, true ); //resize & crop the image
?>
<?php if($image) : ?>
<a href="<?php the_permalink(); ?>">
<img class="slide-image" src="<?php echo $image ?>"/>
</a>
<?php endif; ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php wpe_excerpt('wpe_excerptlength_index', 'wpe_excerptmore'); ?>
<div class="clear">
</div>