HOME      BLOG       FORUMS      CONTACT       ABOUT

Cheatin’ uh? error in wordpress with custom taxonomies

July 25th, 2011 Albin Joseph Posted in WordPress 3 Comments »

Cheatin’ uh? error in wordpress with custom taxonomies.

Have you ever got a ‘Cheatin’ uh?‘ when you try to access a custom taxonomy page you have added to a custom post type? I was facing this problem today. The strange thing is that this issue was coming only for some taxonomy, not for all. After some trail and error methods I found the reason for this issue. When you create a taxonomy name only lowercase letters are allowed and no spaces are allowed. So if your taxonomy name has an upper case letter or a space, you will get this error.

For eg: ‘Movie Stars’ or ‘Movie’ is not valid. ‘movie’ or ‘moviestars’ is valid.

Share
AddThis Social Bookmark Button

Open or close comments for individual posts in WordPress

June 3rd, 2011 Albin Joseph Posted in WordPress No Comments »

Open or close comments for individual posts in WordPress

Sometimes we may want to open or close the comments on individual posts in WordPress. Once you are in Edit mode or when you create the post, WordPress provides an option to enable or disable comments on an individual posts basis. To see the Discussion options where we can see the options to open or close the WordPress comments, scroll down to the bottom of the edit screen and you will be able to see the discussion module after the post edit text area.

By default the discussion module is hidden in WordPress. To enable it, click on the Screen Options link on the upper right corner of your admin panel.

Enable ‘Discussions’ module by selecting the checkbox.

Share
AddThis Social Bookmark Button

Bulk open comments in WordPress

June 1st, 2011 Albin Joseph Posted in WordPress No Comments »

Bulk open comments in WordPress

Comments are enabled by default in WordPress. However sometimes you might have disabled the commenting in your WordPress blog. After disabling the comment, comments section of your WordPress allways show ‘Comments are closed.’ message. This ‘Comments are closed.’ message is coming from your WordPress theme, most of the time from comments.php file. The file checks the comment status of the post and if the status is closed, it will display a message ‘Comments are closed.’ in your WordPress blog.

Now you may want to enable the commenting on all your posts. So follow the below steps to change the comment status.

1. Enable commenting. To do that go to Settings -> Discussion and make sure that you have ‘Allow people to post comments on new articles’ checkbox checked. This will ensure that for all the new posts, the comments will be enabled.

2. Opening the comments for all the existing posts can be done either from your WordPress admin panel or by updating your DB. Execute the following query in your database for opening the comment for all the existing posts.

UPDATE WP_POSTS SET COMMENT_STATUS='open' AND PING_STATUS='open' WHERE COMMENT_STATUS='closed';

Change the table name to match with your database table prefix.

Or if you want to open all your comments from the WordPress admin panel, go to Posts -> Posts to display all the posts in your WordPress blog. Select the post/posts you would like to modify. Select ‘Edit’ from ‘Bulk Actions’ drop down menu and click on Apply button. Now select the value for Comments drop down as ‘Allow’ and click on Update button. This will enable comments for all the posts selected.

Share
AddThis Social Bookmark Button