delete duplicate content
Eliminate most of the duplicate content: <? if (is_home() && (!$paged || $paged == 1) || is_search() || is_single() || is_page()): ?> <div class="entry"> <?php the_content() ?> <? else: ...
Tags In A Dropdown
Display Tags In A Dropdown Menu functions.php file <?php function dropdown_tag_cloud( $args = '' ) { $defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => ...
avatar to default list
/*add avatar to wordpress default list*/ add_filter( ‘avatar_defaults’, ‘newgravatar’ ); function newgravatar ($avatar_defaults) { $myavatar = get_bloginfo(’template_directory’) . ‘/images/name-your-gravatar-image.jpg’; $avatar_defaults[$myavatar] = “administrator”; return $avatar_defaults; }
Most Recent Comments
Show Most Recent Comments comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 10"; $comments = ...
Translation Links
Translation Links < ul id="translations"> <li >< a rel="nofollow" href ="http://translate.google.com/translate?u=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>&langpair=en%7Cde">Translate this page to Deutsch</li > <li ...
Conditional custom fields
Conditional custom fields for images <?php if((get_post_meta($post->ID, "mast", true))) { ?> <?php $image = get_post_meta($post->ID, 'mast', true); ?> < a href ="<?php the_permalink() ?>" title= "<?php the_title_attribute(); ?>"> < ...
most recent comment
List most recent comments <?php global $wpdb; $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,30) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN ...
tag list with CSS classes
tag list with CSS classes < ul id="tag_grid"> <?php $tags = get_tags(array('orderby' => 'count', 'order' => 'DESC', 'number' => 25)); ...
Exclude Categories from RSS
Exclude Categories from RSS Feed function myFilter($query) { if ($query->is_feed) { $query->set('cat','-5'); //Don't forget to change ...
View all Archives
- 2012: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2011: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2010: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2009: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2008: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2007: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2006: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2005: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2004: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2003: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec