Skip to content

Instantly share code, notes, and snippets.

View 1shiharat's full-sized avatar
💭
I may be slow to respond.

ishihara takashi 1shiharat

💭
I may be slow to respond.
View GitHub Profile

スタッフリレーブログ4日目を任されました、石原です。 普段は GrowGroup合同会社で CMSを使ったWeb制作業務を行っております。

WordFes では、サイト制作を主に担当しており、「WordPress の最新動向」との題材でセッションを行います。 ご期待に沿えるセッションができるか不安ではありますが、 興味がある方は是非ご来場ください。

(一応) 去年からスタッフとして参加していましたが、今年はサイト制作を担当しました。 野末さん、Katz さんにディレクションをしていただき、 デザインと土台のコーディングを WordBench Nagoya 山田さおりさん にやってもらい、

@1shiharat
1shiharat / acf_image.php
Created September 9, 2014 10:29
acf_image.php
<?php
$image_id = get_field( 'カスタムフィールドID' );
$src = wp_get_attachment_image_src( $image_id, 'カスタムサイズのスラッグ' );?>
<img src="<?php echo esc_url( $src['url'] ); ?>" alt="placeholder+image">
http://sourcedrop.net/eEP0deadce3fb
@1shiharat
1shiharat / terms.php
Last active August 29, 2015 14:10
カンマ区切りでカテゴリを出力
<?php
$terms = get_the_terms( get_the_ID(), 'category' );
if ( !empty($terms) ) {
if ( !is_wp_error( $terms ) ) {
foreach( $terms as $term_key => $term ) {
// カテゴリー名がhogehogeの場合ループをすっ飛ばす
if( $term->name == 'hogehoge' ) {
continue;
}
if ($term === end($terms)) {
<a href="">
<img src="http://image.rakuten.co.jp/510-corp/cabinet/top/03263171/imgrc0064027279.gif" alt="" width="294" >
</a>
@1shiharat
1shiharat / .babelrc
Last active February 9, 2016 07:43
おもむろに es6, sass で書きたい時のセット
{
"presets": ["es2015"],
// Remove the line below to enable ES2015 support.
"retainLines": true
}