php wp_head(); ?>
post_content, ‘UTF-8’)>40){ $content= mb_substr($post->post_content, 0, 40, ‘UTF-8′); echo $content.’……’; }else{ echo $post->post_content; } ?>
‘post’, // 投稿タイプ ‘category_name’ => ‘product’, // カテゴリをスラッグで指定する場合 ‘posts_per_page’ => -1, // 表示件数 ‘orderby’ => ‘date’, // 表示順の基準 ‘order’ => ‘DESC’ // 昇順・降順 )); global $post; if($cat_posts): foreach($cat_posts as $post): setup_postdata($post); ?>
$('p:empty').remove();