Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
As you can probably see I use the Sociable plugin on this blog. I recently realized that the Digg link was broken. Here is the fix:
0
956
posted 15 years ago by captbaritone
Once the automatic button placement for the ShareThis plugin has been deactivated, this function added to custom_functions.php will place the button on single posts only (not the home page).
1
928
posted 15 years ago by thesislab
Add the code below to custom_functions.php to restore Thesis Options and Design Options to their defaults. Keep in mind that this has no effect on custom.css, or the other functions in custom_functions.php.
2
965
posted 15 years ago by thesislab
This function assumes a custom print.css located in the custom folder.
1
688
posted 15 years ago by thesislab
This makes template code that applies to children of a particular page much more readable, especially if you can use a page path instead of an ID: `if ( is_child_of( 'topic/subtopic' ) ) :`.
1
869
posted 15 years ago by cyberhobo
Function to add custom body class in th Thesis theme for WordPress...Thanks to @girliegeek!
1
942
posted 15 years ago by joelhaus
Search Engine Optimisation, or SEO is something that a lot of bloggers get obsessed about, whilst others think it’s a load of rubbish. I’m halfway between the two – whilst I believe that you can change certain things to better SEO your content,...
0
650
posted 15 years ago by paulgrenwood
Whilst there are a number of ways of displaying thumbnails, this is still my favourite (even if it does require the most work!). First, upload timthumb to /wp-content/themes/yourtheme/ and create an image 250px by 250px with your site’s logo and up...
0
787
posted 15 years ago by paulgrenwood
This is something that I wished I’d thought of a long time ago – show other posts in the same series using not a plugin but custom fields. All you’ve got to do for this trick to work is create a custom field ‘Series’ with a link to each oth...
1
694
posted 15 years ago by paulgrenwood
For use in conjunction with the get_work function in the theme functions template, functions.php.
0
655
posted 15 years ago by tylersticka