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
$_GLOBALS['task'] = new CustomPostType(); | |
$_GLOBALS['task']->post_type = array( | |
array( | |
'name' => 'Task', | |
'type' => 'task', | |
'supports' => array( | |
'title', | |
'editor', | |
'author', | |
'comments' |
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
###### | |
# | |
# NOTE, you must reload your profile for these changes to take effect | |
# [your name ~] source .bash_profile | |
# color codes: http://www.funtoo.org/en/articles/linux/tips/prompt/ | |
# | |
###### | |
###### | |
# |
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
foreach( $this->post_type as $wtf ) { | |
$my_cpt = get_post_types( array( 'name' => $wtf['type']), 'objects' ); | |
if ( is_tax( $wtf['taxonomies'] ) ) { | |
global $wp_query; | |
if ( in_array( $wp_query->query_vars['taxonomy'], $wtf['taxonomies'] ) ) { | |
if ( file_exists( MY_PLUGIN_DIR . 'theme/custom/' . $wtf['type'] . '-taxonomy.php' ) ) { | |
load_template( MY_PLUGIN_DIR . 'theme/custom/' . $wtf['type'] . '-taxonomy.php' ); | |
} elseif ( file_exists( MY_PLUGIN_DIR . 'theme/default/taxonomy.php' ) ) { | |
load_template( MY_PLUGIN_DIR . 'theme/default/taxonomy.php' ); |
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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
[color] | |
ui = auto | |
interactive = true |
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
#!/bin/bash | |
if [ ${PWD##*/} == task-tracker ]; then | |
echo `git notes show` | |
fi |
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
case ( is_tax( $my_taxonomies ) ): | |
global $wp_query; | |
if ( in_array( $wp_query->query_vars['taxonomy'], $my_taxonomies ) ) { | |
foreach ( $my_taxonomies as $taxonomy ) { | |
load_template( MY_PLUGIN_DIR . 'theme/archive-' . $k['type'] . '.php' ); | |
// load_template( MY_PLUGIN_DIR . 'theme/taxonomy-' . $my_taxonomies. '.php' ); | |
} | |
} | |
exit; |
NewerOlder