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
This will display the slug for the category with the ID…
Continue Reading Add comment February 28th, 2011
Google’s input box style…I like it.
Continue Reading Add comment February 26th, 2011
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…It works well with IE8, FF, Opera.
Continue Reading Add comment February 23rd, 2011
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
Some codes help you to display the TXT data by using PHP…
Continue Reading Add comment February 21st, 2011
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
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
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
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
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
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jan | Mar » | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | ||||||