If your like myself and hate using loads of plugins to do the simplest of things then this ALL-IN-ONE contact form is perfect for you. Honestly you literally just need to COPY & PASTE the snippet directly into your template and of you go. This contact form automatically grabs and uses the admin email address, blog title and website url for the form, creates error responses and displays an alternative thank you page on submit. It also has the WordPress 'the_content' feature so you can add additional content if needed and comes with a send response feature.
I'd love to hear any feedback on this and welcome all comments. I hope you all like and enjoy this small snippet.
1. include file into your functions.php
2. to display view count use
Done! enjoy.. just Cut, Paste & Use.
As of WordPress version 3.5 (and newer) they have left out the Link Manager link in the admin area. This bit of code in your functions.php will bring it back.
Automaticlly addes a nofollow link in the post content of a desired category!
A small but usefull snippet which is great for the author page or for open website which have multiple authors and returns a count of author posts... Please note that it currently returns published & pending posts but this can be changed easily by adding the status parameter to get_post request.
Here another useful snippet for highlight current menu item in PHP
When you need to build a theme that support in LTR but also in RTL you need small functions that makes life easier! This couple of function saved my a lot of time and weight on un-needed css code! Use it wisely yound jedi