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
<?php | |
// via http://wordpress.stackexchange.com/questions/17325/how-to-enable-hierarchical-permalinks-for-hierarchical-taxonomies | |
// and http://wordpress.org/support/topic/hierarchical-custom-taxonomy-permalinks | |
register_taxonomy('genre',array('book'), array( | |
'hierarchical' => true, // this makes it hierarchical in the UI | |
'labels' => $labels, | |
'show_ui' => true, | |
'query_var' => true, | |
'rewrite' => array( 'hierarchical' => true ), // this makes hierarchical URLs |
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
LOCK TABLES `wp_postmeta` WRITE; | |
/*!40000 ALTER TABLE `wp_postmeta` DISABLE KEYS */; | |
INSERT INTO `wp_postmeta` (`meta_id`, `post_id`, `meta_key`, `meta_value`) | |
VALUES | |
(47059,4635,'_thumbnail_id','4705'), | |
(47060,4635,'_thumbnail_id','4708'); | |
/*!40000 ALTER TABLE `wp_postmeta` ENABLE KEYS */; | |
UNLOCK TABLES; |
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
<?php | |
// add this before any other code on a page, errors will print at bottom | |
// via http://stackoverflow.com/questions/1018935/get-and-wordpress | |
error_reporting(E_ALL); | |
ini_set('display_errors', true); | |
?> |
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
/* Via http://css-tricks.com/forums/discussion/13461/landscape-orientation/p1 */ | |
<meta name="viewport" content="width=device-width; initial-scale=1" /> | |
<!-- Add "maximum-scale=1" to fix the weird iOS auto-zoom bug on orientation changes. --> | |
@media (max-device-width: 480px) and (orientation: landscape) {} |
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
// Via http://www.wprecipes.com/customize-wordpress-login-logo-without-a-plugin | |
function my_custom_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/custom-login-logo.gif) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'my_custom_login_logo'); |