Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



Put this before the loop in archive.php to have posts in the archive for category '26' sorted by custom field 'date'. Assign sortable values like '090501' or '2009-05-01' to those fields when editing posts and your Upcoming Events will be sorted by...
8 690 posted 12 years ago by hussong
This example is adding a feature box after the first post. You can apply it to any of the hooks inside the loop.
2 342 posted 12 years ago by kristarella
6 370 posted 12 years ago by kristarella
4 306 posted 12 years ago by kristarella
This example adds tags and categories to the Thesis byline, each on a new line, and with the needed classes to match the other byline items. The byline is generated in thesis/lib/functions/content_functions.php (v1.4.2 at the time of writing) look...
5 346 posted 12 years ago by kristarella
2 286 posted 12 years ago by spark9
Load jQuery into WordPress generated pages, the wp_enqueue_script function can be used in plugins as well. OR Add and load a new script that depends on jQuery (this will also cause it to load jQuery into the page as well).
2 361 posted 12 years ago by selfmadepsyche
Edit functions.php and sidebar.php
2 364 posted 12 years ago by selfmadepsyche
3 239 posted 12 years ago by selfmadepsyche
1 242 posted 12 years ago by selfmadepsyche
1 352 posted 12 years ago by selfmadepsyche
1 270 posted 12 years ago by selfmadepsyche
get_the_author_email outputs the post author’s email and the “80” is the size of the avatar image in pixels & it has to be in the loop!
0 557 posted 12 years ago by selfmadepsyche
This gets me every time. Why doesn't my blog work?! Oh yeah, that's why.
0 290 posted 12 years ago by jaspertandy
To display a list of your 10 most commented posts from 2008, simply paste the following code on your blog sidebar, or anywhere on your theme.
1 308 posted 12 years ago by selfmadepsyche