レスポンシブ ギャラリーPhotospace Responsive

Photospace Responsive
http://thriveweb.com.au/the-lab/photospace-responsive/
http://wordpress.org/plugins/photospace-responsive/

http://blog.openmedialabo.net/5698

http://thriveweb.com.au/photospace-plugin-examples/horizontal-responsive-layout/
こいつでもレスポンシブになるらしいが
ちょっときょどうがおかしかったが参考cっs

やはりパーセンテージだね

.photospace {
position:relative;
margin-bottom: 20px !important;
min-height: 200px; /* space for loader */
}
.photospace,
.photospace .thumnail_col,
.photospace .gal_content,
.photospace .slideshow-container,
.photospace .slideshow span,
.photospace .slideshow a.advance-link,
.photospace .slideshow img{
width: 100% !important;
height: auto !important;
}
.photospace .slideshow span{
display: block !important;
}
.photospace .gal_content{
float: none !important;
}
.photospace .slideshow span{
position: relative !important; /* Keep the gallery height – Doesn’t work with synced transistions */
}
.photospace .loader{
width: 100px !important;
height: 100px !important;
top: 50% !important;
left: 50% !important;
margin-left: -50px;
}
.photospace .thumbs_wrap2{
min-height:45px; /* space for thumbnails */
overflow: hidden;
}
.photospace .thumbs{
min-height:40px;
}
.photospace .thumbs_wrap{
float: left;
left: 50%;
position: relative;
}
.photospace .pageLink.next{
margin-right:0;
}
.photospace .thumnail_col {
float: left;
left: -50%;
width:auto !important;
position: relative;
}
.photospace ul.thumbs {
float:left;
}
.photospace span.image-caption{
position: inherit !important;
}

タイトル部分 色々

14は一番最初にかいてあったわ

 ヘッダークリーナーの効力で 位置が変わって解らなくて 2時間位無駄に迷った

その産物

ファンクション500行あたり
見覚えのあるコードがここに

function twentyfourteen_wp_title( $title, $sep ) {
	global $paged, $page;

	if ( is_feed() ) {
		return $title;
	}

	// Add the site name.
	$title .= get_bloginfo( 'name' );

	// Add the site description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) ) {
		$title = "$title $sep $site_description";
	}

	// Add a page number if necessary.
	if ( $paged >= 2 || $page >= 2 ) {
		$title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );
	}

	return $title;
}
add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 );

これはwp_titleにひっかけるフッックってやつだ

このように細工した

function twentyfourteen_wp_title( $title, $sep ) {
	global $paged, $page;

	if ( is_feed() ) {
		return $title;
	}

	// Add the site name.
	$title .= get_bloginfo( 'name' );

	// Add the site description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) ) {
		$title = "$title $sep $site_description |邦楽 J-POP アコースティック";
	}

	// Add a page number if necessary.
	if ( $paged >= 2 || $page >= 2 ) {
		$title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );
	}
	
	
	

	return $title;
}
add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 );

これじゃ全部はかわらんもんで

あとはヘッダー

	<title><?php wp_title( '|', true, 'right' ); ?></title>

(区切り文字 $display 右だ)

こいつを色々 

<?php if(is_category(4))://カテゴリ:ライブスケジュールの場合
	$ccc = '今後の';
	elseif(is_page( '62' )):
	$ccc = '過去の';
	endif;
	
	if(in_category(4) and is_single() )://カテゴリ:ライブスケジュールの場合
	$d_day= get_the_time('Y年m月d日 ');
	$d_live= 'LIVE ';
	
	endif;

	$ddd = ' | 邦楽 J-POP アーティスト | 愛知 岐阜 三重';

	?>
<title><?php echo $d_live,$ccc, wp_title( '|', true, 'right' ); echo $ddd;?></title>
  <meta property="og:title" content="<?php echo $d_day, the_title(); ?> | 中村愛香.jp" />

prepare エラー タグ一覧表記 

http://nendeb.jp/?p=563

http://cathval.com/wordpress/3107

とりあえず

prepare("SQL文");
を
prepare("SQL文",null);

で対応

//Twenty Fourteen: サイドバー (sidebar.php)   
<div id="secondary">
//ここから
          <ul> 
           <li>タグ</li>
         <?php
$tagList = $wpdb->get_results($wpdb->prepare("
    SELECT t.term_id,t.name,t.slug,tt.count
    FROM $wpdb->terms AS t
    JOIN $wpdb->term_taxonomy AS tt
    USING(term_id)
    WHERE tt.taxonomy = 'post_tag'
    ORDER BY tt.count DESC
",null));
foreach ($tagList as $value):?>
<?php
$add_style = '';
$add_class = '';
if( is_tag( $value ) ){
	$add_class = 'current';
	$add_style = 'style="color:#71B6FC;"';
}
?>

<li>
<a href="/?tag=<?php echo $value->slug; ?>/" <?php echo $add_style;?> class="<?php echo $add_class;?>">
<?php echo $value->name; ?></a> 
(<?php echo $value->count; ?>)</li>
<?php endforeach;?>
         </ul>

topのfeatured-contentを使う為のfanction おすすめ記事

14だと
150行目くらいか

// Add support for featured content.
	add_theme_support( 'featured-content', array(
		'featured_content_filter' => 'twentyfourteen_get_featured_posts',
		'max_posts' => 6,
	) );

こうかいたりますね

featuredをつかいますよって宣言らしい
さいどばーとおなしやね
ただこれはポストタイプと記事数のみ指定できる
ここ触っても 記事更新しないと反せされない

これの下にどこでもいいから

//twentyfourteen_get_featured_postsより後に書く topの注目記事の制御
function myfuture($array){
    //たとえばサムネイルのある投稿だけを6件取得する
    $array = get_posts(array(
        'meta_key' => '_thumbnail_id',
        'numberposts' => 6,
			'orderby'=> 'date',
		'order' => 'ASC',//追加
    ));
    return $array;
}
 
add_filter('twentyfourteen_get_featured_posts','myfuture',100);

これいれて調整twentyfourteen_get_featured_postsにかかるやつらしい

http://wood-roots.com/web%E5%88%B6%E4%BD%9C/wordpress-web%E5%88%B6%E4%BD%9C/twenty-fourteen%E3%81%A7%E3%83%88%E3%83%83%E3%83%97%E3%81%AE%E7%9B%AE%E7%AB%8B%E3%81%A4%E8%A8%98%E4%BA%8B%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%95%E3%81%9B%E3%82%8B%E6%96%B9%E6%B3%95

最初参考

http://translate.google.co.jp/translate?hl=ja&sl=en&u=http://jetpack.me/support/featured-content/&prev=/search%3Fq%3Dfeatured-content%26espv%3D210%26es_sm%3D91

中村 コンテンツphp

あいキャッチがふあんていなので
コンテンツ内にいれた

さらにスケジュール用に分岐追加で
live_days.php

最初にphpはいるらしい絶対 かぶっても

<?php		if(in_category(4)):
				?><div class="entry-title"><?php the_time('Y年m月d日'); ?></div>
				<?php endif;
				

content.php

<?php
/**
 * The default template for displaying content
 *
 * Used for both single and index/archive/search.
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	

	<header class="entry-header">
    <?php twentyfourteen_post_thumbnail(); //上から持ってきた↑?>
    
		<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
		<div class="entry-meta">
			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
		</div>
		<?php
			endif;

			if ( is_single() ) :
			include("live_days.php");//追加
            the_title( '<h1 class="entry-title">', '</h1>' );
			else :
			include("live_days.php");//追加
				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
			endif;
		?>

		<div class="entry-meta">
			<?php
			//日付とかいらない ライブ リリース時
				//if ( 'post' == get_post_type() )
					//twentyfourteen_posted_on();
					
					//追加 時計出す為にa
					if(in_category(6)):
				?><div class="entry-date" style="float:left; padding-right:10px;"><a><?php the_time('Y年m月d日'); ?></a></div>
				<?php endif;
				//追加ここまで
				
				

				if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
			?>
			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
			<?php
				endif;

				edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' );
			?>
		</div><!-- .entry-meta -->
	</header><!-- .entry-header -->

	<?php if ( is_search() ) : ?>
	<div class="entry-summary">
		<?php the_excerpt(); ?>
	</div><!-- .entry-summary -->
	<?php else : ?>
	<div class="entry-content">
		<?php
			the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
			wp_link_pages( array(
				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
				'after'       => '</div>',
				'link_before' => '<span>',
				'link_after'  => '</span>',
			) );
		?>
	</div><!-- .entry-content -->
	<?php endif; ?>

	<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
</article><!-- #post-## -->

中村 body_class

//特定の条件でボディにクラスをつける
add_filter('body_class','my_class_names');
function my_class_names($classes) {
if(is_page( '62' )){
// add 'class-name' to the $classes array
$classes[] = 'list-view';
// return the $classes array
}
return $classes;
}
 

http://memocarilog.info/wordpress/theme-custom/3001 参考

これで固定ページのクエリポストにも
list-viewをつけて

アーカイブぺーじのtw14のcssを

中村 消した かてphp

<?php
/**
 * The template for displaying Category pages
 *
 * @link http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */

get_header(); ?>

	<section id="primary" class="content-area">
		<div id="content" class="site-content" role="main">
        
   
        <?php //カテゴリ:ライブスケジュールの場合 未来の記事しか出さないよ
		if(in_category(4)):
function filter_where($where = '') {
$where .= " AND post_date > '" . date('Y-m-d', strtotime('0 days')) . "'";
return $where;
}
add_filter('posts_where', 'filter_where');
?>
<?php //カテゴリ:ライブスケジュールの場合セットしないといけないよ カテゴリアーカイブではなくなるので下記single_cat_titleはつかえなくなるよ!
	query_posts(
	array(
	'paged' => $paged,
	'cat'=> array(4),
	'order' => ASC,
	));
?>	
<?php endif; //カテゴリ:ライブスケジュールの場合★おわり ?>

<?php if ( have_posts() ) : //記事があれば

if(in_category(4))://カテゴリ:ライブスケジュールの場合?>


			<header class="archive-header">
				<h1 class="archive-title">一覧</h1>

<?php else://カテゴリ:他の場合?>

<header class="archive-header">
				<h1 class="archive-title"><?php printf( __( ' %s', 'twentyfourteen' ), single_cat_title( '', false ) ); ?> 一覧</h1>

<?php endif; //カテゴリ:ライブスケジュールの場合★おわり ?>

<?php
					// Show an optional term description.
					$term_description = term_description();
					if ( ! empty( $term_description ) ) :
						printf( '<div class="taxonomy-description">%s</div>', $term_description );
					endif;
				?>
			</header><!-- .archive-header -->

			<?php
					// Start the Loop.
					while ( have_posts() ) : the_post();

					/*
					 * Include the post format-specific template for the content. If you want to
					 * use this in a child theme, then include a file called called content-___.php
					 * (where ___ is the post format) and that will be used instead.
					 */
					 
					
					get_template_part( 'content', get_post_format() );

					endwhile;
					// Previous/next page navigation.
					twentyfourteen_paging_nav();

				else :
					// If no content, include the "No posts found" template.
					get_template_part( 'content', 'none' );

				endif;
			?>
		</div><!-- #content -->
	</section><!-- #primary -->

<?php
get_sidebar( 'content' );
get_sidebar();
get_footer();

中村jp改造覚え

まずcssで改造

スタイルに追加

 /*サイドと上色替え*/
.site:before,.site-header{
	background-color: #72DFB8!important;	
	}
 /*アドミンバー色替え*/	
.search-toggle,#wpadminbar{
 background-color: #FFA70A!important;
 
 }
 /*サムネイル ホバー色替え*/ 
.post-thumbnail{ 
 background-color: #B2B440!important;
 }
 /*サムネイル 401までマージン*/
 @media screen and (min-width: 401px) {
 .entry-header .post-thumbnail{margin-bottom:10px;}
 }

 
/*サイドメニュー ヘッダーメニューのカレントカラー*/	
.site-navigation .current_page_item > a, .site-navigation .current_page_ancestor > a, .site-navigation .current-menu-item > a, .site-navigation .current-menu-ancestor > a {
	color: #FFA70A!important;
	}
/*サイドメニュー ヘッダーメニューのホバー上記かれんとよりあとに*/	
	 .site-navigation a:hover {
 	background-color: #FFA70A!important;
	color: #FFFFFF!important;
}

/*シングル 他Pageのぞく ポストサムネイルをエントリーヘッダーに入れたからマージンはいらない*/
.single.full-width.singular .site-content .hentry.has-post-thumbnail,
.full-width .site-content .has-post-thumbnail .entry-header

{
	margin-top: 0px!important;
	
}

3188行目あたり 

多分.has-post-thumbnailけした

.list-view .site-content .hentry {
		border-top: 1px solid rgba(0, 0, 0, 0.1);
		padding-top: 48px;
	}


.list-view .site-content .hentry:first-of-type,
	/*.list-view .site-content .hentry.has-post-thumbnail*/ 
	/*サムネイル有りも線いるし 一個目はいらない*/
	.list-view .site-content .hentry.has-post-thumbnail:first-of-type{
		border-top: 0;
		padding-top: 0;
	}

ブログでサイドバーに色々

カスタムポストの新着情報

  <h3 class="widgettitle">施工例 NEW !!</h3>        

          <?php
$args = array(
'posts_per_page' => 3,
'post_type' => 'jirei_new', //カスタム投稿名
	);
?>
<?php
query_posts( $args );
if ( have_posts () ) :
    while ( have_posts() ) :
        the_post();
?> 
<div class="popular_one">
<div class="popular_sam">
 <?php
 
 $i = 0;
$kiji = 1;//この回数でフォーチ終わる。

$fields = $cfs->get('jirei_imgs');
foreach ($fields as $field) :
if($i >= $kiji)://siが3よりおおきくなったら
break;//ループおわり
else://それまではこれで出力
?>

<?php
$title= get_the_title();
 $attachment_id = $field['jirei_img'];
 $sample_photo = wp_get_attachment_image($attachment_id,'jirei_small',0,array('alt'=>$title,'title'=>$title));?>
 <a href="<?php the_permalink(); ?>">
<?php 
echo $sample_photo;
?>
</a>        
<?php
$i++;//多分繰り返すごとに$iに数値が1つづ増える
endif;
endforeach;
?>
</div>

<h4><div class="popular_title"><a href="<?php the_permalink(); ?>">
<?php the_title(); ?></a></div></h4>
<div class="popular_date" style="padding-top:5px;">
<p><?php get_trim_str(array('str'=>get_post_meta($post->ID,"jirei_disp",true), 'len'=>100)); ?></p>

</div>

</div>

<?php
    endwhile;
endif;
?>

<!-----------------リセットクエリ--------->
<?php wp_reset_query(); ?>

新着ブログ

<h3 class="widgettitle">新着ブログ</h3>       
          <?php
$args = array(
'posts_per_page' => 3,
'cat' => 4,
	);
?>
<?php
query_posts( $args );
if ( have_posts () ) :
    while ( have_posts() ) :
        the_post();
?> 
<div class="popular_one">
<div class="popular_sam"><a href="<?php the_permalink(); ?>">
			<?php 
			$title= get_the_title();
			the_post_thumbnail('side_new_post_sam',
			array('class' => 'blog_sam_img','alt' =>$title, 'title' => $title)
			); ?>
            </a></div>
<div class="popular_date"><?php the_time('Y/m/d'); ?></div>
<div class="popular_title"><p><a href="<?php the_permalink(); ?>">
<?php the_title(); ?></a></p></div>
</div>

<?php
    endwhile;
endif;
?>

<!-----------------リセットクエリ--------->
<?php wp_reset_query(); ?>

新着 サムネイルなし

<h3 class="widgettitle">Information</h3>       
          <?php
$args = array(
'posts_per_page' => 3,
'cat' => 5,
	);
?>
<?php
query_posts( $args );
if ( have_posts () ) :
    while ( have_posts() ) :
        the_post();
?> 
<div class="popular_one">
<div class="popular_sam"><a href="<?php the_permalink(); ?>">
			<?php 
			$title= get_the_title();
			the_post_thumbnail('side_new_post_sam',
			array('class' => 'blog_sam_img','alt' =>$title, 'title' => $title)
			); ?>
            </a></div>
<div class="popular_date"><?php the_time('Y/m/d'); ?></div>
<div class="popular_title"><p><a href="<?php the_permalink(); ?>">
<?php the_title(); ?></a></p></div>
</div>

<?php
    endwhile;
endif;
?>

<!-----------------リセットクエリ--------->
<?php wp_reset_query(); ?>

css

/*-----------------------------------------------------ウィジェット用-----------------------------------------------------*/

.widgettitle{
	font-size: 12px;
	margin-top: 20px;
	margin-bottom: 30px;
	line-height: 44px;
	height: 40px;
	background-color: #595959;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	-webkit-border-bottom-right-radius: 5px;
	-webkit-border-bottom-left-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	-moz-border-radius-bottomright: 5px;
	-moz-border-radius-bottomleft: 5px;
	color: #FFF;
	padding-left: 15px;
	border-left-width: 4px;
	border-left-style: solid;
	border-left-color: #e50012;
}
	
.widget{
	list-style-type: none;
}

/*-----------------------------------------------------wp popular postプラグイン用-----------------------------------------------------*/

.popular-posts{}
.popular_one{
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom-width: 1px;
	border-bottom-style: dotted;
	border-bottom-color: #CCC;
	clear: both;
	overflow: hidden;
}
.popular_sam{
	float: left;
}
.popular_sam img{
	float: left;
	background-color: #FFF;
	padding: 1px;
	border: 1px solid #CCC;
	margin-right: 12px;
}
.popular_date{
	font-size: 10px;
}
.popular_title{
	font-size: 12px;
}

.wpp-views{
	color: #FF7737;
}

YARPP うまくいって記録し忘れてた ウチヤマで

ポスト関連記事 出力コード

<?php related_posts(); ?>

css

/*-----------------------------------------------------YARPPプラグイン用-----------------------------------------------------*/

.related-post{
height:100%;
}
.related-post{
width:100%;
overflow:hidden;
margin-top:5px;
}
.related-entry {
vertical-align: top;
float: left;
width:123px;
font-size: 13px;
min-height: 210px;
margin-bottom:0px;
padding: 0px 10px 0px 10px;
display: block;
}
.related-entry img{
	padding: 4px;
	border: #ccc 1px solid;
	width: 123px;
	height: 123px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 5px;
	margin-left: 0px;
}
 
#post-syokai2{
	border-left: 10px solid #999;
	padding: 1px 9px;
	margin: 5px 0 16px 0;
	font-size: 16px;
	margin-left: 5px;
}



.kannrenn h3{
	background-color: #c1c1ff;
	font-size: 14px;
	color: #494a41;
	margin: 35px 0 10px 0;
	padding: 5px 0px 5px 20px;
}

.kannrenn ul{
	list-style-type: none;

}

.kannrenn ul li{
	float: left;
	width: 100px;
	line-height: 21px;
	margin: 0 13px 0 0;
}

yarpp-template-d1.php

<?php if(have_posts()):?>
<div style="padding-top:0px;"></div>
<h2 id="post-syokai2">関連記事はこちら</h2>
     <div class="related-post">
     <?php while(have_posts()) : the_post(); ?>
          <?php if(has_post_thumbnail()):?>
               <h3><div class="related-entry"><a href="<?php the_permalink() ?>"rel="bookmark"title="<?php the_title_attribute(); ?>"><?php $title= get_the_title(); the_post_thumbnail("thumbnail",array( 'alt' =>$title)); ?><?php the_title(); ?></a></div>
            <?php else: ?>
            <div class="related-entry"><a href="<?php the_permalink() ?>"rel="bookmark"title="<?php the_title_attribute(); ?>">
    <img src="<?php echo home_url(); ?>/wp-content/plugins/wordpress-popular-posts/no_thumb.jpg" alt="<?php $title= get_the_title();  echo $title ?>" />
    <?php the_title(); ?></a></div></h3>
               
               
          <?php endif; ?>
     <?php endwhile; ?>
     </div>
<?php else: ?>
 
<?php endif; ?>

バージョンアップ不具合

Auto Post Thumbnail Android 不具合
バージョンあっぷすべし

携帯でアップした画像なのか

サムネイルが表示されなくなった

3.8にあっぷしたら

http://yuhnote.com/2012/06/15/wp3_4-eyecatch-thumbnail/

こちらと同じく。

8番は大丈夫だったからアプリが原因

メディアからサムネイルが消えているのを選び 消して サムネイルを再度作成

これでよし

コンタクトフォームで

■コンタクトフォームでのスパム対策 直埋め込み

acceptance-0 送信してよろしいですか?
と認証式にするとよい

http://curious-everything.com/1089-entry.html

ショートコード埋め込み

<?php echo do_shortcode( '[contact-form-7 id="4" title="コンタクトフォーム 1"]' ); ?>

■コンタクトフォームで添付ファイルの最初は1MB
変更は

[file file-359 limit:3000000]

■コンタクトフォーム ファイル名文字化け
やったけど入換え phpmailなんとか
治らなかった

画像の先読みこます

<script>

image = new Image();
image.src = "img/top/jc_top2-02.jpg";
image.src = "img/top/jc_top2-07.jpg";
image.src = "img/top/jc_top2-06.jpg";
image.src = "img/menu_put-01_on.jpg";
image.src = "img/menu_put-02_on.jpg";
image.src = "img/menu_put-03_on.jpg";
image.src = "img/menu_put-04_on.jpg";
image.src = "img/menu_put-05_on.jpg";
image.src = "img/top/jc_top2-02.jpg";

</script>

</head>

タームをタックスクエリー入れ込む方法![]は配列をしまうってことだ!多分

<?php //ターム名リンク無しで取得

$terms = get_the_terms($post->ID, 'art_name');
$names = array();
     echo ""; //前の文字
     foreach ( $terms as $term ) {
          $names[] = $term->slug; //[]にしまうってこと!
     }
	
?>
  
  
<?php
$r_posts1 = $cfs->get('kanren_art');
if ($r_posts1) :
?>
 
     
<div class="top_titol" style="font-size:24px;">関連アーティースト</div>
 
    <div class="top_new_item_all">
 
 
 
 
<?php
endif;
?>

 <?php //---------------------------------------------関連イベント

$args = array(
		'posts_per_page' => -1,
//'orderby' => 'menu_order',
//'order' => 'ASC',
'tax_query' => array(
			'relation' => 'AND',
			array(
				'taxonomy' => 'art_name',
				'field' => 'slug',
				'terms' => array($names[0],$names[1],$names[2],$names[3],$names[4],$names[5],$names[6],$names[7],$names[8],$names[9],$names[10]),
//'operator'=>'NOT IN'
				),
),
'post_type' => 'support_artists', //カスタム投稿名
	);
?>
<?php
	query_posts( $args );
?>
 
 
 
<?php
if ( have_posts () ) :
    while ( have_posts() ) :
        the_post();
?>

<a href="<?php the_permalink(); ?>"><div class="artists_box">
    <div class="artist_sam">

<?php //写真1枚----------------------------
$title= get_the_title();
$attachment_id = $cfs->get('w126');
 $sample_photo = wp_get_attachment_image($attachment_id, 'W126',0,array('alt'=>$title,'title'=>$title));
echo $sample_photo;
?></div>
    
    <div class="artist_disp">
     <div class="artist_name"><?php the_title(); ?></div>
      
      <div class="artist_area"><?php echo nl2br(get_post_meta($post->ID,"chiiki",true)); ?></div>
    </div>
  </div></a>
<!--/Aritist_box--> 
  
  <?php
    endwhile;?> 
     <br clear="all" />
 </div>
<?php
endif;
?> 
 
 <?php wp_reset_query(); ?>

2つ出力 3つ あれば ALT タイトル

<?php if(post_custom('w452px')): //横写真2枚まで----------------------------?>
<div class="single_art_img2">

<?php
$i = 0;
$kiji = 2;//この回数でフォーチ終わる。
$fields = $cfs->get('w452px_box');
foreach ($fields as $field) :
if($i >= $kiji)://siが2よりおおきくなったら
break;//ループおわり
else://それまではこれで出力
?>

<?php
 $attachment_id = $field['w452px'];
 $sample_photo = wp_get_attachment_image($attachment_id,'W452',0,array('alt'=>$title,'title'=>$title));
echo $sample_photo;
?>
 
<?php
$i++;//多分繰り返すごとに$iに数値が1つづ増える
endif;
endforeach;
?>
</div>
<?php endif; //横写真2枚まで----------------------------?>
<?php if(post_custom('w300px')): //縦写真3枚まで----------------------------?>
<div class="single_art_img3">
<?php
$i = 0;
$kiji = 2;//この回数でフォーチ終わる。
$fields = $cfs->get('w300px_box');
foreach ($fields as $field) :
if($i >= $kiji)://siが2よりおおきくなったら
break;//ループおわり
else://それまではこれで出力
?>

<?php
 $attachment_id = $field['w300px'];
 $sample_photo = wp_get_attachment_image($attachment_id,'W300',0,array('alt'=>$title,'title'=>$title));
echo $sample_photo;
?>
 
<?php
$i++;//多分繰り返すごとに$iに数値が1つづ増える
endif;
endforeach;
?>

</div>
<?php endif; //縦写真3枚まで----------------------------?>

あれば1つ出力 リンク無しタイトルALT

<?php if(post_custom('w910px')): //大写真1枚----------------------------?>
<div style="padding-bottom:5px;">
<?php $title= get_the_title();
$attachment_id = $cfs->get('w910px');
 $sample_photo = wp_get_attachment_image($attachment_id, 'W910',0,array('alt'=>$title,'title'=>$title));
echo $sample_photo;

?>


</div>
<?php endif; ?>