In some posts, I’ve attached source code and files allowing user to download. Now I’m interested to check how many times file downloaded and how to display it with download link as in other sites. I found different WordPress plugins like WP-DownloadManager, Downloads Manager, WordPress Download Monitor, WordPress Download Counter..etc. All are doing file management perfectly, But I like WordPress Download Monitor the most. It allows you to upload files, store it on your server and share it with your readers. You can install and activate it easily as normal plugin. Continue reading Display File Download Count in WordPress
When I imported production database and configured code on my local dev machine, I got this error even I had updated wp-config.php with correct information. I fixed the problem after some changes. This article explains troubleshooting steps to fix this error.
Continue reading Error establishing a database connection – WordPress
1. Display featured post with thumbnail.
2. Title will be placed below the thumbnail.
3. Featured posts will be randomly selected and must show default thumbnail if no thumbnail is defined for the post.
4. All selected posts must appear together, no slider to navigate.
5. It must not use any script(Not good for SEO) or plugin.
Continue reading How to Display Featured Post with Thumbnails Without Plugin
Yesterday, I created a sub-domain in my site. To configure Google analytics to track content and visitor data for sub-domain, I searched and found following in Google code:
a default setup of Google Analytics is designed to track content and visitor data for a single domain, such as www.example.com. This means that even if you manage both a domain and a sub-domain, you must make modifications to the tracking code in order to share visitor data across both domains.
Continue reading Configure ‘Google Analytics for WordPress’ plugin for Subdomain tracking
I faced many problems to manage my shared content on skydrive, google Docs, dropbox…etc. I decided to create a wordpress theme where I could share my content properly. I like wordpress 3.0 custom post type feature. It gives me option to create this feature. In this post, A project collection theme using wordpress 3.0 custom post type is explained.
1. To create Custom post type for Projects with following options:
2. To add different external shared file (Google Docs, Windows SkyDrive..etc) in Options.
3. To create Index page and new feed for the Projects
4. To create catalog for Projects.
Continue reading Create a Project Collection Theme using WordPress 3.0 Custom Post Type
I have created a new category ‘Idhar-Udhar’, But I don’t want to show posts related to this category on home page. I saw “Function Reference/query posts”. there is parameter category_name which displays posts from only one category by name. There is no parameter to exclude posts by category_name. I tried -(minus sign) in following way, but not worked.
I tried ! sign also, but no luck.
Continue reading Exclude Posts by Category Name from Home page in WordPress
For a wordpress blogger, it is required to setup and sync blog on local machine for theme, widget and plugin development and customization. this article shows the steps to setup wordpress blog on local machine from production server.
Continue reading Setup wordpress on local xampp from production server