Skip to content

Instantly share code, notes, and snippets.

@ideodora
ideodora / gist:6e3fada11529958c55e2
Last active August 29, 2015 14:07
WP アイキャッチ
<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail();
} ?>
<!-- or -->
<?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
$thumb = wp_get_attachment_url( get_post_thumbnail_id($post->ID, 'post-index') );
} else {
@ideodora
ideodora / package.json
Created October 2, 2014 01:10
Browserify and Shim integration for window Base JS library via package.json
{
//...
// Alias local file path for browserify
// so that they can be callable by shorter name in browserify
//
"browser": {
// alias name: 'local path (related to where package.json is?)'
//