Auto-Add Custom Field If Does not Exist
-
Hi,
Since I am using a theme that requires a Custom Image Field in each and every post, I need to make sure my authors put one in. The thing is, I want to have a default image in case they don’t put it in (a custom field automatically added ONLY IF one with the same name doesn’t already exist).I saw the code online to auto-add, but does that code add the custom field even if one already exists there? That’s what I don’t want, I want to add a custom field IF AND ONLY IF a custom field with the same name doesn’t already exist. Any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Auto-Add Custom Field If Does not Exist’ is closed to new replies.