Welcome To Snipplr
Everyone's Recent Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
taken from wordpress-- it took me a whole to find this on their site
3
936
posted 16 years ago by melvitax
This snippet is originally from Tom Carden. All due credit goes to him.
2
1605
posted 16 years ago by Wiederkehr
Inserts "first" and "last" classes to the first and last items respectively. "first" and "last" classes defined in CSS as without padding.
2
833
posted 16 years ago by nijgnet
Sets the sidebar photo appropriate for a section of the site by determining the parent Page of the subpage.
4
970
posted 16 years ago by nijgnet
After installing WordPress an .htaccess file with the following code needs to be added to the wp-includes folder.
1
680
posted 16 years ago by m00min
Implement "Asides" in a WordOress blog just with the Sandbox theme and CSS
2
819
posted 17 years ago by j_junyent
put "register_sidebar_widget(..)" into "function widgets_init()"
4
1013
posted 18 years ago by yuconner
You should edit your WordPress plugin so that the $source variable at the end shows this value. Though it is a shame that code can't have an 'ol' as a childNode, and neither can the pre element. Couldn't find any way of making it all fit: http://lear...
3
906
posted 18 years ago by rolandog
这个问题出现在home.phpä¸ã€‚
from:天佑
在 home.php ä¸ $myrecentposts 內的 SQL 是用 post_date å’Œ NOW() 作比較.
NOW() 這個 function 是會以 server çš„ timezone 讀å–ç¾æ™‚的時間,但 post_date 這個 field çš„ timezone...
0
636
posted 18 years ago by championeer
Exclude Posts From Some Category
è¿™æ ·å°±å¯ä»¥åœ¨é¦–页ä¸ä¸æ˜¾ç¤ºæŸäº›ç±»åˆ«ï¼ˆæ¯”如asides)的帖å了
1
1308
posted 18 years ago by championeer
For a working demo in application/xhtml+xml or text/html, go to:
http://rolandog.com/archives/2006/07/10/litebox-demasiado-bueno-para-ser-cierto/
You should delete the multi-line comments after completing the setup, some old browsers will complai...
3
1160
posted 18 years ago by rolandog