WordPress: Comments are auto closed while using Disqus Commenting System

Scenario: I have been using Disqus commenting system on my WordPress blog. Recently, I found that comments were automatically closed on many of my blog posts. I tried editing my blog posts in WordPress admin to see if it has ‘Allow Comments’ checkbox checked or not. All of the blog posts had “Allow Comments” checked. … Read more

WordPress Fix: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)

Scenario: I am getting this warning message in my wordpress blog:- open_basedir restriction in effect. File(/tmp) is not within the allowed path(s) Solution: You should check the Uploading Files path settings in your wordpress admin. – Go to Settings -> Media – Under ‘Uploading Files‘, see the path for ‘Store uploads in this folder‘ – … Read more

WordPress Contact Form 7: Quick Fix to spinning arrow displays forever & no success/error message displayed

Scenario / Problem I am using Contact Form 7 plugin on my WordPress blog. The form is displayed properly. But, when I submit the form, the spinning arrow is displayed forever and no success or error message is displayed. However, the form is working. It is submitted and I get the message in my inbox. … Read more

WordPress: Archive link not working

Scenario:- My archive link is not working in my WordPress blog. Precisely saying, the date-based archive is not working. I am redirected to 404 page when I try to access Yearly Archive or Monthly Archive. Cause & Solution:- The main cause for this problem (in my case) was “Robots Meta Plugin“. This plugin makes it … Read more

WordPress: Optimizing 404 Page Not Found page

Generally the wordpress 404 page contains one or two sentence saying that the page is not found. But you can make it more user friendly. Instead of just writing plain text about page not found, we can display archive list and a search form. In this way, the visitor can search or browse your website … Read more

WordPress: Create custom archive page

This article shows how to create a custom archive page for your wordpress blog. In the following archive page, I have displayed yearly archive, monthly archive, category wise archive and all post archive. So, the newly created archive page will be a kind of all-in-one archive page. Here is the step-by-step guide: 1) Create a … Read more

Left or Right Align your image, adsense code or other advertisement in wordpress

Suppose you want to show your google adsense in the top-left side of your post. If you simply put your adsense code in the single post page (single.php) of wordpress then the text of your post will appear below the adsense. To solve this problem, I used stylesheet property called ‘margin’. The example below is … Read more