An Idea For A WordPress Plugin

I had this idea for a WordPress plugin about 6 months ago when building a website using WordPress, but still haven’t got round to building it – if anyone wants to do it, I’m sure loads of WordPress developers will use it, if it has already been done – please let me know!

Objective: Force users to define specific custom fields on pages using custom templates and display them as separate required fields in the page editor.

How it would work: As the developer you simply put add the required variables to the custom template file when you declare the template’s name. Something like:-

<?php
/*
Template Name: Snarfer
Requires: page-subheading | Page Subheading
Requires: some-image-for-popup | Popup Image
*/
?>

These fields would then be displayed in the page editor and the user would be unable to publish the page unless the custom field has been entered.

Anyone know if this has already been done? If not, what do you think?

Tags: , ,