Prepared by Paul Wenzel with data from Google Analytics and the Google API console
Complete site overhaul launched in Spring 2014.
Traffic increased and bounce rate decreased.
# Global composer install for MAMP Users on OSX | |
# http://getcomposer.org/doc/00-intro.md#globally | |
# For PHP 5.4 Use: | |
# alias php=/Applications/MAMP/bin/php/php5.4.4/bin/php; | |
alias php=/Applications/MAMP/bin/php/php5.3.6/bin/php; | |
curl -sS https://getcomposer.org/installer | php; | |
mv composer.phar /usr/local/bin/composer; | |
composer help; |
.PHONY: install | |
install: clean wordpress phpunit wp-cli | |
git submodule init; | |
@echo "\n\nNOTICE: You may need to configure a MySQL database for your Wordpress installation. Just run:" | |
@echo " mysql -u root -p;" | |
@echo " CREATE DATABASE example_site; \n" | |
wordpress: latest.tar.gz | |
tar -zxvf latest.tar.gz; |
time curl http://www.wikipedia.org > /dev/null |
Prepared by Paul Wenzel with data from Google Analytics and the Google API console
Complete site overhaul launched in Spring 2014.
Traffic increased and bounce rate decreased.
# Example Makefile for compiling CSS and Javascript in watched folder | |
PHONY: optimize | |
css: | |
@cat assets/css/normalize.css assets/css/app.css > public/assets/all.css | |
@echo Built all.css | |
js: | |
@cat assets/js/jquery.js assets/js/jquery.cookie.js assets/js/app.js > public/assets/all.js |
# Example Makefile for compiling CSS and Javascript in watched folder | |
PHONY: optimize | |
css: | |
@cat assets/css/normalize.css assets/css/app.css > public/assets/all.css | |
@echo Built all.css | |
js: | |
@cat assets/js/jquery.js assets/js/jquery.cookie.js assets/js/app.js > public/assets/all.js |
directory: /Volumes/BigMedia/Beets | |
library: /Volumes/BigMedia/Beets.blb | |
import: | |
move: no | |
copy: yes | |
write: yes | |
paths: | |
default: $albumartist - $album%aunique{}/$track $title | |
singleton: $albumartist - Singles/$artist - $title | |
comp: $album%aunique{}/$track $artist - $title |
<?php | |
/** | |
* @link Escape post content in META Attributes, http://codex.wordpress.org/Data_Validation | |
* @link Complete List of HTML Meta Tags, https://gist.github.com/kevinSuttle/1997924 | |
* @example get_template_part('meta'); | |
*/ | |
?> | |
<meta name="twitter:card" content="summary"> | |
<!--<meta name="twitter:site" content="@YOUR_TWITTER_HANDLE">--> |
This guide shows how to set up a PHP and MySQL development environment using OSX's built-in Apache, using Homebrew to install necessary components. With this strategy, you can use different versions of PHP for certain virtual hosts.
VirtualHostX is a convenient way to manage development sites, but not required.
brew update
brew install php56
brew install php56-mcrypt
brew install mysql
diff --git a/wp-content/plugins/custom-post-types-relationships-cptr/cptr.php b/wp-content/plugins/custom-post-types-relationships-cptr/cptr.php | |
index 2d82e17..853a51d 100644 | |
--- a/wp-content/plugins/custom-post-types-relationships-cptr/cptr.php | |
+++ b/wp-content/plugins/custom-post-types-relationships-cptr/cptr.php | |
@@ -136,7 +136,7 @@ function cptr_category_selector() { | |
if (!empty($relations)) : | |
foreach($relations as $relation) : | |
$post = get_post($relation); | |
- echo "<div title='" . $post->post_title . "' class='thepost' id='post-".$post->ID ."'> | |
+ echo "<div title='" . esc_attr($post->post_title) . "' class='thepost' id='post-".$post->ID ."'> |