term_id; } } $args = array ( 'posts_per_page' => 8, 'post__not_in' => array($post->ID), 'category__in' => $categoryids, 'orderby' => 'rand', 'ignore_sticky_posts' => 1 ); $related_query = new WP_Query($args); do_action( 'brainpress_parts_related_before' ); ?>
関連記事
have_posts() ) : while ( $related_query->have_posts() ) : $related_query->the_post(); ?>

20 ) { $title= mb_substr( $title,0,20 ) ; echo $title . '...'; } else { echo $title; } ?>