Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I always want new posts to have a category, but sometimes I forget.

How can I make Wordpress warn me when I'm about something 'uncategorized'?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Category Reminder plugin

share|improve this answer

First of all. Change the category name uncategorized to some other. I usually make this "Other". In case you want notification in front end you can add a alert or some Red graphics with post loop by code<?php if ( current_user_can('manage_options') ) { do_something(); } ?> so only you can see it. check http://markjaquith.wordpress.com/2006/03/27/how-to-check-if-a-wordpress-user-is-an-administrator/

Its a easy one :) but if you want to show something like a javascript popup in admin when you click the update/publish button. You have to add a javascript in admin area like this http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Load_a_script_from_your_theme.2C_excluding_admin_area then you can check if uncategorized is checked when user clicked on publish button.

You have to check the id of the checkbox of the category and update button. I think the javascript will not very hard.

Thanks let me know if it was helpful or not.

share|improve this answer
    
I think Milo's answer was a little easier to follow, sorry. –  barrycarter Apr 27 '11 at 18:02
    
no problem at all! :) –  Sisir Apr 28 '11 at 17:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.