Require assigned taxonomy before publishing is allowed
-
In a knowledge base I’ve built, the user must post a page with a taxonomy assigned to it. This is because static pages for each possible taxonomy query the database for all posts tagged with that taxonomy, and generate a splash/landing page with a list of all relevant posts.
It did not occur to me that the user may forget to assign a taxonomy to a post, and the post would therefore be lost in the “twilight zone.” It exists in the database, has a unique URL, but is linked to nowhere on the website.
I can go back through the database and fix any past errors, but moving forward what I would like to do is require that a taxonomy be assigned before the user is allowed to publish a post.
Should I be doing this in PHP in the post-new.php file? Should I use jQuery to check that a value has been assigned, and test on-click of the publish button?
Thoughts???
- The topic ‘Require assigned taxonomy before publishing is allowed’ is closed to new replies.