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
/* ---------------------------- | |
simple reset: | |
http://www.maxdesign.com.au/articles/css-reset/ | |
---------------------------- */ | |
html, body, ul, ol, li, form, fieldset, legend | |
{ | |
margin: 0; | |
padding: 0; | |
} |
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 | |
global $wp_query; $postid = $wp_query->post->ID; | |
if (get_post_meta($postid, 'Zusatztitel', true)) { | |
echo get_post_meta($postid, 'Zusatztitel', true); | |
} else { | |
echo "Ersatztext"; | |
} | |
wp_reset_query(); | |
?> |
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 | |
if (is_category()) { | |
$cat = get_query_var('cat'); | |
$yourcat = get_category ($cat); | |
echo 'the slug is '. $yourcat->slug; | |
} | |
?> |
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 | |
function contributors() { | |
global $wpdb; | |
$authors = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users WHERE display_name != 'Vorname Name' AND display_name != 'Vorname Name2' ORDER BY display_name"); | |
foreach ($authors as $author ) { | |
echo "<div style=\"float:left; margin: 0 15px 3px 0;\">"; | |
echo get_avatar($author->ID); |
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 | |
function new_subcategory_hierarchy() { | |
$category = get_queried_object(); | |
$parent_id = $category->category_parent; | |
$templates = array(); | |
if ( $parent_id == 0 ) { | |
// Use default values from get_category_template() |
NewerOlder