Adding Message Depending on Custom Field
-
So my homepage is a page within wordpress. It has a custom field that is defined by custom meta boxes. Essentially, at all times the custom field of the homepage will be either LIVE or STANDARD.
I want to write a function in my functions.php file that will allow me to show an “error” or “message” box (Ala All In One SEO, or when you save a post) that will notify anyone logged in that the custom meta is X.
So if the specific page (id=476) has a custom field “broadcast” that has the variable “live”, it shows an error or message box across the admin.
::EDIT:: So I forgot to mention that I’m trying to get this message to appear in the WP-admin not the normal site ::/EDIT::
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Adding Message Depending on Custom Field’ is closed to new replies.