This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
//... | |
// 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?)' | |
// |
NewerOlder