新着記事の中で、複数の記事を固定表示する方法。
-
imbalaceというテーマを使っています。
そして今作っているのがこれなのですが、about,menu,mapが並んでくどいので、
1■■
■2■
■■31=about
2=menu
3=mapという風に、これら3つの記事の位置は変わらず、あとは新着ごとに流れるようにしたいのですが、どのようにカスタマイズすればよいのでしょうか。
indexのソースを公開すればよいでしょうか?
もし不足があればご指摘ください。よろしくお願いします。
<?php get_header(); ?> <ul class="mcol"> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <li class="article" id="post-<?php the_ID(); ?>"> <?php if ( has_post_thumbnail() ) { ?> <?php $imgsrcparam = array( 'alt' => trim(strip_tags( $post->post_excerpt )), 'title' => trim(strip_tags( $post->post_title )), ); $thumbID = get_the_post_thumbnail( $post->ID, 'background', $imgsrcparam ); ?> <a>"><div class="preview"><?php echo "$thumbID"; ?></div></a> <?php } else {?> <div class="preview"><a>"><img src="<?php bloginfo('template_url'); ?>/images/default-thumbnail.jpg" alt="<?php the_title(); ?>" /></a></div> <?php } ?> <div class="article-over"> <h2><a>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php the_excerpt(); ?> <div class="postmetadata"> Posted: <?php the_time(__('F jS, Y', 'kubrick')) ?> ˑ <?php printf(__('Filled under: %s'), get_the_category_list(', ')); ?> </div> </div> <?php ?> <?php endwhile; ?> <?php else : ?> <?php endif; ?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <?php endwhile; ?> <?php else : ?> <h1 id="error"><?php _e("Sorry, but you are looking for something that isn’t here."); ?></h1> <?php endif; ?> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> <?php get_footer(); ?>
トピック「新着記事の中で、複数の記事を固定表示する方法。」には新たに返信することはできません。