Profile
Achievement
vagrantradio's Recent PHP Snippets
- All /
« Prev 1 Next »
Clean up the crap in wp_head(). Put it in yo functions file.
1
657
posted 13 years ago by vagrantradio
Prevents WordPress from loading Contact Form 7 on page templates other than the one defined.
0
765
posted 13 years ago by vagrantradio
Very useful line of code that I'm using very often to prevent old and cached CSS file being served to visitors. You just need to use timestamp of the file.
0
738
posted 13 years ago by vagrantradio
If post thumbnail doesn't exist, then get the first uploaded image. Change sizes as needed.
0
892
posted 13 years ago by vagrantradio
Removes all but the text widget, look them up: /wp-includes/default-widgets.php.
0
637
posted 13 years ago by vagrantradio
Dump it in your functions file and stare at the amazing blank page when you log in!
0
591
posted 13 years ago by vagrantradio
Loads WordPress header for external functions like get_option();
0
623
posted 13 years ago by vagrantradio
Detect and echo browser version including differentiating between Chrome and Safari.
3
848
posted 13 years ago by vagrantradio
Had many people ask me how I display all posts in a category when they click on the category link in the header @<a href="http://www.vagrantradio.com">http://www.vagrantradio.com</a>.
There's a lot more involved, but here's the quick and dirty;
0
771
posted 14 years ago by vagrantradio
This will create a bookmark link to send a Wordpress post to your Evernote Account similar to the send to Google reader feature on the Evernote blog.
0
575
posted 14 years ago by vagrantradio
Gives you the option to select a custom gravatar in the Wordpress discussion setting in admin dashboard
1
555
posted 14 years ago by vagrantradio
Uses ajax upload from http://valums.com/ajax-upload/. Complete working script with front and back end validation. Enjoy.
1
895
posted 14 years ago by vagrantradio