KLoning Spoon
How to create auto login in windows 7

How to create auto login in windows 7

As mobile devices become less of a luxury and more of a necessity, the bottom line is becoming obvious:your fixed-width WordPress theme needs to be responsive. Now’s the time to seriously consider converting your WordPress theme to be mobile-friendly. This tutorial will show you the basic steps to make your site fluid.

Just write this function to your functions.php file and change the home_url() in this code to your new url.

function new_login_redirect_url() {

  return home_url();
}
add_filter('login_redirect', 'new_login_redirect_url');
Simple Styles for Horizontal Rules, That is, the <hr> element. You could get a lot fancier with an element like a <div> that can hold content, but I like the semantics of a horizontal rule. It’s an emphatic break between two sections of content.

Simple Styles for Horizontal Rules, That is, the <hr> element. You could get a lot fancier with an element like a <div> that can hold content, but I like the semantics of a horizontal rule. It’s an emphatic break between two sections of content.

First create a functions.php for your child theme and add

// Show Wp-PageNavi when it's active function twentyeleven_child_content_nav( $nav_id ) { global $wp_query; if ( $wp_query->max_num_pages > 1 ) : ?> <?php /* add wp-pagenavi support for posts */ ?> <?php if(function_exists('wp_pagenavi') ) : ?> <?php wp_pagenavi(); ?> <br /> <?php else: ?> <nav id="<?php echo $nav_id; ?>"> <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyeleven' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div> </nav><!-- #nav-above --> <?php endif; ?> <?php endif; }

Next copy index.php to your child theme folder and change line 31 to
<?php twentyeleven_child_content_nav( 'nav-below' ); ?>

If wp-pagenavi is installed it will show it, if it isn’t, it’ll show the default next/previous

/* Add last_item class to last li in wp_nav_menu lists*/
function add_last_item_class($strHTML) {
	$intPos = strripos($strHTML,'menu-item');
	printf("%s last_item %s",
		substr($strHTML,0,$intPos),
		substr($strHTML,$intPos,strlen($strHTML))
	);
}
add_filter('wp_nav_menu','add_last_item_class');  

Monthly Posts Rate, Names and E-mails of Everybody Who Has Ever Commented, Monthly Comments Rate, What Time Do People Comment?, Most Popular (Top 10) Commenters

I use <?php the_date(); ?> to show a date of my recent post using query_posts, but it’s little bit of strange, coz not all that post showing a date. It’s showing a date but it’s random on the list of my recent post.

Then i use <?php echo get_the_date(); ?> and now in every single post on the list of my recent post is showing a date. Why is that?

This is only reminder for me how to capture screenshot on Mac OS X, I use Mac OS X Snow Leopard 10.6.8.

To copy the entire desktop, press Command-Control-Shift-3 and to capture a portion of the desktop, press Command-Shift-4.

Thats it.

hacks:

This is a simple hack from Sid05: better pagination in Tumblr.
You can have something like this in your Tumblr:

page 1 of 50

by using a couple of simple tag.

This is the code to be add to your theme.

page { CurrentPage } of { TotalPages }

Note: no spaces within the brackets!
You can see it working at the bottom of this page!