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
<?php | |
add_action('init', 'theme_post_types'); | |
/** | |
* Reqister Post-Types | |
* | |
* @return void | |
*/ | |
function theme_post_types() | |
{ | |
//example #1: |
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
<?php | |
/* States */ | |
$us_states = array( | |
'alabama' => 'Alabama', | |
'alaska' => 'Alaska', | |
'arizona' => 'Arizona', | |
'arkansas' => 'Arkansas', | |
'california' => 'California', | |
'colorado' => 'Colorado', |
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
AL : ALABAMA | |
AK : ALASKA | |
AS : AMERICAN SAMOA | |
AZ : ARIZONA | |
AR : ARKANSAS | |
CA : CALIFORNIA | |
CO : COLORADO | |
CT : CONNECTICUT | |
DE : DELAWARE | |
DC : DISTRICT OF COLUMBIA |
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
<select name="State"> | |
<option value="" selected="selected">Select a State</option> | |
<option value="AL">Alabama</option> | |
<option value="AK">Alaska</option> | |
<option value="AZ">Arizona</option> | |
<option value="AR">Arkansas</option> | |
<option value="CA">California</option> | |
<option value="CO">Colorado</option> | |
<option value="CT">Connecticut</option> | |
<option value="DE">Delaware</option> |
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
<?php | |
/** | |
* Retrieve range of zip codes within given radius as | |
* determined by $rad | |
* Taken from http://www.movable-type.co.uk/scripts/latlong-db.html | |
* | |
* @global wpdb $wpdb | |
* | |
* @param integer $zip Zip code to query for | |
* @param integer $radius Radius in miles |
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
<?php | |
/** | |
* My Project | |
* | |
* @package MyProject | |
* @subpackage JesGs_Walker_Category | |
* @author Jess Green <[email protected]> | |
* @version $Id$ | |
*/ |
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
" General | |
set number | |
set showbreak=+++ | |
set showmatch | |
set visualbell | |
"set mouse=a "for mouse support | |
set hlsearch | |
set smartcase | |
set ignorecase |
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
export APPLICATION_ENV=development | |
export SVN_EDITOR='/usr/bin/vim' | |
alias la='ls -la --color' | |
PS1="[\h:\\W] $ " | |
#source ~/.gitsource |
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
<?php | |
/** | |
* ImageSizes | |
* Define and create image sizes | |
* | |
* @todo Add setter method for adding image sizes | |
* | |
* @package ImageSizes | |
* @author Jess Green <[email protected]> | |
* @version $Id$ |
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
<?php | |
/** | |
* Add image sizes to Insert Into Post list | |
* @see http://goo.gl/CJdR4 | |
* | |
* @param array $sizes | |
* @return array | |
*/ | |
add_filter('image_size_names_choose', 'display_image_size_names', 11, 1); | |
function display_image_size_names($sizes) |
OlderNewer