Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



paste it in wp-config.php and make sure the prefixes are right (wp_* is default) also the blogs must be installed on the same database with different prefixes. For example, you might have a primary blog with the table prefix wp_ on the database...
0 288 posted 12 years ago by philiph
Use with (in custom.css) .sidebar_box {margin-bottom:2em; text-align:center;} You may have to adjust the width for your sidebars.
2 364 posted 12 years ago by kristarella
The function content should work in any theme, it's just wrapped in a function wrapper for insertion into the Thesis theme.
2 373 posted 12 years ago by kristarella
This CSS is nice to use with this function: .custom .avatar {float:left; border:3px solid #ddd; margin-right:1em;}
2 332 posted 12 years ago by kristarella
You will probably have to hide the medium sized image.
2 360 posted 12 years ago by kristarella
3 349 posted 12 years ago by kristarella
This shows how to add content (in this case a linked image) to the end of a post using WordPress custom fields and the Thesis theme.
6 452 posted 12 years ago by kristarella
To be placed inside a loop or a query
1 327 posted 12 years ago by davebowker
3 510 posted 12 years ago by jimmysessions
Thanks to LenK on the WP forums.
3 346 posted 12 years ago by kristarella
Better way to echo a .current_page_item class on a list nav.
3 336 posted 13 years ago by davebowker
wordpress function return html list with all posts grouped by month
1 286 posted 13 years ago by miziomon
$quote -- name of function post_type=page -- remove to query posts orderby=rand -- random order showposts=1 -- limit to 1 post effect -- displays 1 random custom excerpt outside of the loop
1 366 posted 13 years ago by davebowker
4 333 posted 13 years ago by Wiederkehr
wordpress in subcategory
2 371 posted 13 years ago by Ashung
reference: http://codex.wordpress.org/Template_Tags/wp_list_categories
1 274 posted 13 years ago by Ashung
Used to display the latest X number of posts from the specified category.
5 388 posted 13 years ago by creator
For use on a single page... Only displays the content if the displayed post is in the specified category. You can use the category slug or the category ID if you know it.
6 516 posted 13 years ago by creator
Can also be used to load scriptaculous, or any js file in WP
2 348 posted 13 years ago by davebowker