Today i organize some very useful WordPress hacks.Hope this may help you in your future projects
Display number of Facebook fans in full text
If you want to display the number of your Facebook Fans then use this code.Replace “YOUR PAGE-ID” with your own Page-ID.
Code:
Source: http://wp-snippets.com/742/display-number-facebook-fans/
Display search terms from Google users
If a visitor reached your site through Google’s search, this script will display the terms they searched for in order to find your site. Put this code where you want to display the message.Source: http://wp-snippets.com/820/display-search-terms-from-google-users/
How to automatically email contributors when their posts are published
If you’re running a multi-authored blog, it can be very cool to let your contributors know when their post are online. Today’s recipe will show you how to do this automatically each time a post is published.Source: http://www.binarymoon.co.uk/2010/02/automated-take-screenshots-website-free/
How to define a minimum word count per post
If you want to be able to keep a minimum word count for your posts, then just read this recipe. Applying it to your blog can be useful to maintain a clean layout, or ensure your guest writers will not post too short articles on your blog.Source: http://pippinspages.com/tutorials/minimum-word-count-for-wordpress-posts/
Automatically add a Google+ button to your posts
This simple piece of code to automatically add a Google+ button to your posts.Open your functions.php file and paste the following code in it:
Source: http://spyrestudios.com/17-time-saving-code-snippets-for-wordpress-developers/
Need Help with Your Digital Presence?
At Dynamic Web Lab, we specialize in building fast, scalable websites and applications for businesses across the UAE and beyond.
- View our case studies to see recent projects
- Explore our services — from WordPress to Next.js, AI solutions to mobile apps
- Contact us for a free consultation
Whether you need a WordPress website, a custom Next.js application, or AI-powered solutions, our team is ready to help.
Written by
Dynamic Web Lab Editorial
We share how we design, engineer, and scale digital products across the GCC, Europe, and the US.
Need help implementing this?
We turn these playbooks into shipped features. Let us scope your roadmap and support your team.
Start a project conversation