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
#!/bin/bash | |
while getopts ":n:" opt; do | |
case $opt in | |
n) | |
echo "Trellis project will be put into directory: $OPTARG" >&2; | |
mkdir $OPTARG; | |
cd $OPTARG; | |
git clone --depth=1 [email protected]:roots/trellis.git; | |
rm -rf trellis/.git; |
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
/** | |
* Template Tag: the_terms_by_level | |
* | |
* Echoes the links of all the terms on the same explicit hierarchical level | |
* associated with a certain taxonomy. You should pass a separator. | |
* | |
* @param $id int post id | |
* @param $taxonomy string the taxonomy | |
* @param $level int level of the hierarchy to echo (top level = 0) | |
* @param $sep string separator |
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
/** | |
* Remove <meta name="generator"> tag created by the WPML PLugin. | |
* Wrapped in an if-statement that checks for an instance of the | |
* sitepress-class (made global by WPML) | |
* | |
* @url http://wordpress.stackexchange.com/questions/117469/how-to-remove-wpml-generator-meta-tag-by-themes-functions-php-override-plugin | |
* | |
* @uses add_action | |
* @uses remove_action | |
* @uses current_filter |
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
function prefix_thumbnail_url( $postid ) { | |
$post_image_id = get_post_thumbnail_id( $postid ); | |
$thumbnail = wp_get_attachment_image_src( $post_image_id, $image-size, false); | |
if ($thumbnail) (string)$thumbnail = $thumbnail[0]; | |
return $thumbnail; | |
} |