This file contains hidden or 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
| /** | |
| * Echos which VAC team you belong to. | |
| * | |
| * @params string $name Name of the person employed by VC Consulting. | |
| * @return int Vac Team | |
| */ | |
| function getVacTeamByName($name = '') | |
| { | |
| $nameTotal = 0; | |
| foreach ( str_split($name) as $char ) { |
This file contains hidden or 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
| // Find wp-config.php | |
| for ( $i = 0; $i < $depth = 10; $i++ ) { | |
| $path = str_repeat( '../', $i ); | |
| if ( file_exists( $path . 'wp-config.php' ) ) { | |
| require_once( $path . 'wp-config.php' ); | |
| break; | |
| } | |
| } |
This file contains hidden or 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
| Custom Post Types: | |
| http://codex.wordpress.org/Custom_Post_Types | |
| http://kovshenin.com/archives/custom-post-types-in-wordpress-3-0/ | |
| http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress/ | |
| Page Templates: |
This file contains hidden or 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
| - simple | |
| - public over private | |
| - personal vanity | |
| - internet is global | |
| - permalinks | |
| - one important item per page | |
| - don't break the browser | |
| - don't wanker in technology | |
| - a medium is not a grande | |
| - break convention for your users |
NewerOlder