the better way would be to create your own meta box nd to add one to your new/edit page screen you can use add_meta_box() function (look at the example at the bottom for the examples), you can also use this class which is nicely documented and does most of the job for you.
Related Posts:
- WP doesn’t show Array Custom Fields?
- Add new “Insert Into Post” button with another function
- Add meta data to the menu
- can you set a default value to a custom field
- Guest Author – How can I use custom fields to create guest author link?
- post meta data clearing on autosave
- Add input field to ‘Pages > Edit Page’ through functions.php
- Auto-add paragraphs to custom field?
- Add description text under input field for new profile fields
- How to add a predefined custom field without using a plugin?
- How to add content at the end of posts?
- how to put a custom field value in variable
- Auto Populate Custom Field with Complex Value That Increase by One?
- Custom Metabox Not Saving
- Getting the ID of any image for use in functions.php
- Auto-remove custom field with no value on publish
- Display custom field values from posts on frontpage
- Specific coditional usage [closed]
- Hide custom fields when empty
- How to disable Edit Post and Allow only Custom Field?
- Custom metabox not working
- Stripping and/or altering the content of a custom field (video URL)
- Odd functions.php issue in WordPress
- Meta boxes not displayed, data isn’t being saved
- Calling Custom Field within Function wrapped with Divs.
- Get fields from metabox array
- Including inline Custom Fields info with add_filter in functions.php
- How to automatically create a custom field when a post is published?
- Is there a way to set default custom fields when creating a post?
- Underscores in custom fields
- Add custom field to the archive page?
- Show only posts which can be commented OR have custom meta field
- Need small coding with Custom Fields Search
- How do I make a custom field choose an image?
- get_post_meta() unserialize issue – returns boolean(false)
- How can I remove fields in the attachment editor?
- Edit Custom Database Tables in WordPress
- How to store the value of a custom field dropdown select for post referencing?
- Gutenberg Custom Block
- Change content before writing to database
- WordPress Search Custom Meta Field Only
- Query Problem – Show posts within category ‘x’ that have a custom field between ‘y’ and ‘z’
- Extend ‘The Events Calendar’ search to include custom fields [closed]
- Default WordPress taxonomy (Tag) – How to add a custom field to form and save it to the database
- Add field to ‘Add User’ admin page
- Escaping Quotes
- How to sort category by custom field value
- wp_editor removes paragraph from custom meta box
- Any way to include custom fields in WP_Query results?
- Using a checklist to search against metadata
- Move value from one meta key to another
- Where did the Add New Custom Field go?
- Will loading too many ACF Fields cause slow down?
- Admin meta Image Path
- Using PHP to read WordPress Posts
- Extra option in editor
- Custom field not updating when value is empty
- Can’t get metabox value (a url) returned using WPAlchemy
- Syntax highligting for custom fields
- Displaying a checkbox array from advanced custom field
- How to create a dropdown select of all items in an ACF field group
- Getting Custom Fields from WordPress JSON API [closed]
- ACF not showing
- WordPress set custom field to true, sets all others to false?
- Shortcode To Display Post Custom Field Value in Post Title, Post Content
- How to make a customized user registration form using the built in wp-register() template tag
- Link FROM attachment to full post and get custom fields values on attachment page?
- How to copy data from a custom field to the post_content?
- Pass PHP through redirect and custom fields
- MetaBox not saving after empty
- How can I create a profile field group that the user can’t see?
- Custom field as featured image caption
- Update custom field values on edit address page woocommerce
- Is there a (sane) way to get all custom fields for a post, which do not have a leading underscore?
- Custom wpdb query – how to sort post by another table meta_count
- Rewrite comment form post ID on submit
- Add a custom field to my custom post type and then get posts which are before the given date in the custom field
- Custom User Dashboard
- Custom Fields not working properly
- Custom meta POST request fired twice when updating a post in Gutenberg
- add meta box considers the selected option as post parent
- How do I display a custom field in an existing form on the front end?
- How to save array option as text and not integer?
- Extend WP_User_Query or WP_User to return all custom fields?
- Quicktag button to automatically add a custom field to a post
- Dynamically generated Navigation Diagram using Custom Fields
- Display custom fields only if it has a value
- WordPress taxonomy child image
- Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
- Add nofollow to custom field link and make domain exceptions?
- wordpress simple post multi rating with post_meta and user_meta
- Custom fields are not displaying in page with multiple loops
- Download stuff after filling fields?
- Custom search with meta fields
- Add custom fields after post/page title
- Custom registration form and custom field
- Custom field for image, not showing image!
- How can i put a custom field inside this php
- Multiple permalinks for a single post from custom field
- Search for meta_query does not return any result if combined with title