For something like this, you can use WordPress’s built-in “Custom Fields” feature.
Step 1
On your edit page, create a new Custom Field (if you don’t see the Custom Fields box on your edit screen, click on the grey”Screen Options” tab at the top-right of the page, and make sure the “Custom Fields” box is checked). The name can be anything, for example let’s assume you want to use “Page Description”…
Step 2
Finally, output that custom field into your theme. Do this by using the following snippet wherever you want to output the custom description text…
<?php echo get_post_meta(get_the_ID(),'Page Description',true); ?>
One more thing… WordPress will remember the name of your Custom Field. Any time you want to use it on a page or post, you can select the name from a drop-down and then enter your description for that page/post.
Related Posts:
- Most efficient way to add javascript file to specific post and/or pages?
- Display all values of custom a field created with ACF on a page
- How to automatically apply woocommerce product title to all product images alt tags?
- If Custom Field is empty don’t display div
- How to display multiple Post meta_key/meta_values by SQL query
- How to make an meta_query optional?
- Add custom field to attachments in a specific category
- How can update custom meta for all posts
- Unique key for each row in a repeater field
- get_post_custom single array
- Make custom field meta not display if there is not data in it
- how to increase custom post value by one most efficiently?
- How can I create a list of page titles from custom meta values?
- Passing the custom field values in the wp_get_current_user array function
- Custom profile field with birthday. Troubles with
- WordPress – Display array data of a child
- wordpress allow user to edit user profile with custom fields
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Saving and Restoring a Canvas on A Individual User Basis
- auto-populating custom nav with all items from custom post type
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- Which PHP page is the Default Posts Page
- Remove the last X characters of a custom field value
- Non-Closing PHP Query in WordPress Loop
- Find a way to retrive data updated through metabox plugin to web page
- Why are the details of my todo not saving?
- Can’t save php string to a custom field
- How to show/hide php table rows based on the content of custom fields
- how to get serialized post meta
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- How to show meta value code HTML after x paragraph
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- Handling repeater data
- How to add data to a custom field at the wp_users table?
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Conditional featured image with youtube thumbnail
- Order a WP_Query by meta value where the value is an array
- Add a counter for mouseovers (custom field)
- Including Custom fields within the_content
- How can i make a search box to search by custom field
- Show field if it has contents on Advanced Custom Fields
- the_meta – no get_the_meta query?
- Display Custom Field in Sidebar if Value is Present
- WordPress stripping out custom field tags
- Using an “IF” statement based on the existence of custom field
- Display additional user fields
- Dynamically added custom fields not displayed on WooCommerce email notifications
- Updating Metadata with Shortcode
- How do you save the values from custom fields to a products data
- How can I add diffrent editable text fields?
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- Include custom fields in search
- update_term_meta() only updating once on certain meta keys
- Trying to update Woocommerce meta values
- Setting up a cron job to auto update a custom field
- How to Call on WordPress Custom Fields without a Plugin
- Query on a repeater date (acf)
- Generating 3 random numbers and saving them in database
- ACF – Can’t get custom post type by taxonomy
- Save custom field on WP_List_Table
- Trying to retrieve meta values from three different meta keys and display in rows
- WP post meta – for loop inside for loop
- custom fields anchor points php
- Store custom field’s multiple values in one user meta key
- Get field in readable word
- WooCommerce multiple custom fields code
- When working with a post, almost all wp_postmeta are deleted
- What syntax is this? “{{post.price}}”
- Updating Lat and Lng of posts automatically gives sporadic results
- WP_query meta_query slow with OR and DATES
- meta field for numerous links
- How to get the first letter from custom field?
- Meta box not saving spaces
- divide custom field values in div every two values
- custom field meta-box with dropdown/autocomplete
- Showing custom field contents without listing description
- How to exclude post from being queried based on custom meta value
- How to link a word comprised of a custom field with another?
- If Elseif Query
- How to use custom fields to replace top-level parent title with an image using wp_list_pages?
- Search result page – display values from the result’s metaboxes
- Display custom meta box in my template file
- Query posts by custom fields (object post)
- ACF Date fileds to Age Convert [closed]
- Save custom field value to variable for conditional – why is this not working? [closed]
- Too many if’s and else if’s ?? – Must be better way [closed]
- Advanced Custom Fields Show PHP in Text Areas
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- I want to show image from custom field image on my custom page template
- How do I organize posts based on their taxonomy?
- Search custom post type posts only by meta fields?
- How to pass value to add_filter wpcf7_form_tag from another function?
- Custom Admin Menu Report for Specific User ID
- Shortcode Displays 2 times
- ACF number less than comparison not working
- fetch from an external api call and display results in page
- wordpress-plugin (widget) that performs a Neaby-search on the openstreetmap-endpoint: around x find y
- Want to add custom post type for facebook feed
- Custom rest fields not loaded in rest api cpt response