Archive for February, 2011

WordPress trick: Get category slug using category ID

This will display the slug for the category with the ID…

Continue Reading Add comment February 28th, 2011

Google’s input style

Google’s input box style…I like it.

Continue Reading Add comment February 26th, 2011

Click to Show!

Do you want to show something in a DIV after your clicking? Here is the codes will help you!

Continue Reading Add comment February 24th, 2011

CSS makes textarea auto height

CSS makes textarea auto height…It works well with IE8, FF, Opera.

Continue Reading Add comment February 23rd, 2011

How to redirect your homepage to the first post

To apply this tip, paste the code below to your homepage file (Most of the time it is named index.php). Please note that you’ll receive a PHP warning if you try to display anything before the wp_redirect() function on line 10.

Continue Reading Add comment February 22nd, 2011

PHP read TXT

Some codes help you to display the TXT data by using PHP…

Continue Reading Add comment February 21st, 2011

Custom WordPress Login Screen

The WordPress admin login page is very easy to customize. With the code below, you can add your own CSS to the login page and make it look however you like.

Continue Reading Add comment February 19th, 2011

WordPress Shortcodes

Shortcodes are handled by a set of functions introduced in WordPress 2.5 called the Shortcode API. When a post is saved, its content is parsed, and the shortcode API automatically transforms the shortcodes to perform the function they’re intended to perform.

Continue Reading Add comment February 18th, 2011

Easily display post titles with a custom length

Now, you can use the function on your theme files. Just pass how many characters you want to display as a parameter.

Continue Reading Add comment February 17th, 2011

WordPress “Delete Post Link”

This WordPress codes for the user to delete posts when browsing the front-end of the site. It will also show a pop-up confirmation box to appear before deleting the post.

Continue Reading 1 comment February 16th, 2011

lockdir.exe – Crazy Thumbs.ms

You know what I said…

Continue Reading Add comment February 15th, 2011

WordPress get post ID by post title

When I was making MR J DICT, I want to get post id by title,but there is no template tags (get_post_by_title)directly to realize it. If you know a post id ,you can get the post title or content or slug very easily by using get_post($post_id).Still,if you want to Get page ID by title,you can use get_page_by_title.

Continue Reading 3 comments February 15th, 2011


Calendar

February 2011
MTWTFSS
« Jan Mar »
 123456
78910111213
14151617181920
21222324252627
28 

Posts by Month

Posts by Category