Do you want to show the number of times a page or post has been viewed in WordPress? There are several WordPress plugins that allow you to show pageview counts along with other bells and whistles. What if you don’t need all those features and just want to show the pageview count? Here is a very simple and effective code for logging the number of pageviews and showing them in WordPress.
Each time you preview your blog post in WordPress to ensure that everything is in order, your page view goes up in Google Analytics or other analytics service. This messes up your Google Analytics stats by increasing the pageviews. You can easily prevent this with a conditional tag called is_preview().
If you want to show the thumbnail of a WordPress post, just use the following code inside the WordPress query loop. Thumbnails can make your website look good.
Do you often use screenshots of websites in your WordPress blog? You can make your blogging faster using a shortcode to add screenshot automatically.
If you create WordPress websites for your clients or general users, you might want to add a simple URL to log in to the WordPress dashboard.
Do you like the way Twitter and some other websites show the number of words allowed in posts or comments? Twitter allows 140 characters per tweet. As you type, you can see the number of characters left to write.
When running a website or blog, you have to take care of certain issues such as hotlinking and requests without a referrer. You can use .htaccess file to define certain rules to protect and manage your website.
Do you want to add a PayPal donation button so that your readers can send you a few dollars and say thank you? It can be very simple to integrate a PayPal donate button in your posts or WordPress website.
Sometimes you want to show a list of random posts from your WordPress blog/website to your readers. It can be a great way of engaging readers for a longer duration by offering them more content. How to show a list of random posts in WordPress?
Do you want to add a tabbed widget to show popular posts based on number of comments on your WordPress website? It is fairly easy to do with a custom WordPress post query.