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
690
posted 13 years ago by vagrantradio
Prevents WordPress from loading Contact Form 7 on page templates other than the one defined.
0
797
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
767
posted 13 years ago by vagrantradio
If post thumbnail doesn't exist, then get the first uploaded image. Change sizes as needed.
0
920
posted 13 years ago by vagrantradio
Removes all but the text widget, look them up: /wp-includes/default-widgets.php.
0
659
posted 13 years ago by vagrantradio
Dump it in your functions file and stare at the amazing blank page when you log in!
0
613
posted 13 years ago by vagrantradio
Loads WordPress header for external functions like get_option();
0
650
posted 13 years ago by vagrantradio
Detect and echo browser version including differentiating between Chrome and Safari.
3
886
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
796
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
595
posted 14 years ago by vagrantradio
Gives you the option to select a custom gravatar in the Wordpress discussion setting in admin dashboard
1
577
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
926
posted 14 years ago by vagrantradio