WordPress– tag –
-
【wordpress】カスタム投稿タイプをトップページにお知らせ表示
カスタム投稿タイプ <div class="common_post_panel"> <?php $args = array( 'posts_per_page' => 4, 'post_type' => 'report', 'post_status' => 'publish' ); $my_posts = get_posts($args); ?> <?php foreach ($my_posts as $p... -
【wordpress】好きなサイズの thumbnailを作る
fanctions.php // Add Thumbnail Theme Support add_theme_support('post-thumbnails'); add_image_size( 'toppage', 480, 273, true ); add_image_size('large', 700, '', true); // Large Thumbnail add_image_size('medium', 250, '', true); // Medium... -
【wordpress】1つのwordpressサイト内にヘッダーフッターのデザインが違うページを作る
template-**.php をアップロードする <?php /* Template Name:本体 */ get_header(main); ?> <?php while(have_posts()): the_post(); ?> <?php remove_filter('the_content', 'wpautop'); ?> <?php the_content(); ?> <?php e... -
【wordpress】Toolsetをつかって簡単作成カスタム投稿タイプ
カスタム投稿タイプを作りたい クライアント案件をやっていると、ほとんど避けて通れないのがカスタム投稿タイプ。 たいてい、Advanced Custom FieldsとCTP UIを使って作ってたし、そんなに困ってもいなかったんだけど。 ちょっとかゆいところはあったわけ...