if you’re using ACF, create an options page and then add a field there. Then present that data in a side widget by echoing out the field.
once the field is created you can call it with this code:
<?php the_field('page_content', 'option'); ?>
I like to add it to a function
function rt_show_field() {
$field = '';
if (get_field('page_content', 'option')) {
$field = get_field('page_content', 'option');
}
return $field;
}
add_shortcode( 'my-field', 'rt_show_field');
Then if you add that function to your functions.php
you can simply add this short code to a widget
[my-field]
or add the function
echo rt_show_field();
to a template page or whereever you want.
Related Posts:
- Is there un-wp_autop function?
- sharing wp-include – wp-admin on same installation
- WordPress br in content problem
- Changing Admin Menu Labels
- Changing the ‘wp-admin’ URL to whatever I want
- Unit testing in the WordPress backend (is_admin() is true)
- How can I improve the line break handling in the WYSIWYG editor?
- How do I change the login logo URL and hover title?
- js error on post editing page
- How to add a custom metabox to the Menu Management admin screen?
- How to change the wording in wp-admin back-end?
- Custom user role that can only edit specific (non-custom-type) page and all child pages [duplicate]
- Add mass action to wp-admin/users.php
- Only allow administrators and editors to access wp-admin
- Bulk Delete Users Error uri too large
- Add button in TinyMCE editor to insert text
- Can you change the main heading of a page in the WordPress admin (without output buffering or JavaScript)?
- wp-admin – save options without refreshing?
- Change the Return URL from the Customizer
- Where can I edit Admin Panel Page file
- How do you modify CSS files via admin panel?
- WooCommerce – filter by featured products in admin
- How to prevent parent admin page from appearring as a child admin page
- How to clone wp-admin and make a new dashboard controlled by your code?
- What is an “Options Framework” for WordPress
- Failed to load resource admin-ajax.php
- show/hide toggle for subpages in wordpress admin area
- Additionally added URL params leading to “Invalid post type.” in the Admin Panel
- Custom WordPress Dashboard for Specific user role
- After login get “403 Forbidden”
- How to display a Ninja Form on the WordPress admin pages
- Show Welcome Panel on Dashboard for every user
- Is it possible to add an item the Post Publish panel?
- 404 of wp-admin pages [closed]
- Execute script only on certain admin pages
- Woocommerce: Add column to ORDERS admin page with items purchased
- How to declutter admin columns
- New wordpress install, what are the reasons the “Install Themes” tab is missing?
- wp_comments table really big casuing /wp-admin/edit-comments.php to slowly load
- I get a 404 page on /wp-admin but not wp-login but as soon as I login I get a 404 again [closed]
- I want to disable login of admin (/wp-admin) with email and make it accessible only with username
- How to make the front-end RTL without changing the admin panel language?
- Post.php is blocked by server? How to unblock? [closed]
- Where are screen options when in admin on mobile?
- post-new.php?post_type=product is not loading properly
- wp-admin redirects to 404
- Generate PDF using tcpdf from WordPress admin side custom page [closed]
- Editor’s role in WP
- Minimum version for WordPress Backbone
- I accidentally deleted an admin user and all their content is now gone from the site. [closed]
- Detect Featured Image remove while editing post in wp-admin (client-side)
- Cannot log in to the admin, no error message [closed]
- Is wp-admin/about.php required? Can i omit it from my website
- Create reviews and star-rating for user accounts in wp-admin [closed]
- Disable Admin CP authentication (or auto login)
- Site Crashes When Updating to WordPress (Version 3.6)
- can’t access backend while frontend works perfect
- How to add Extra Column of post Status in All post page
- Developer/Designer asking for admin access
- WordPress Child theme fails to override parent theme css
- How can I control which plugins run in the dashboard?
- How to change home page only in WordPress
- User Roles: How to hide a plugin from showing in WP-Admin?
- WP Admin Login keeps redirecting to login
- Admin menu success message
- Pages section (only) not loading after publishing large number of pages
- CPU overload spam – redirect link to wp-admin and new post
- define two login page url
- Users can login to Website from wp-admin prior to confirmation email
- wp-admin 503 error
- Admin Page access
- Add HTML to custom post type edit page
- WP site after login keeps redirecting to looped url [closed]
- Locked out of site admin after change of URL
- WordPress critical error on wp-admin page with 100% permissions
- WordPress Redirects to a cancelled domain, need to change it but can’t get to the admin portal
- WordPress Admin Login Issue
- Edit “Not Available” Page
- admin-ajax and external service interaction
- Add admin page to the top of the admin panel
- Admin page changes the $_POST data
- Add item to admin panel – w/o plugin & theme
- Wp-admin Redirection loop after moving to subdirectory
- Remove menu item dashboard for a unique user
- Reestablishing Automatic and Secure FTP Connection, Primary Domain Change
- Show only childs and grandchilds of certain post in admin
- WordPress logged in but no access to wp-admin
- Changed the path to wp-login and now can’t access WPress dashboard
- Why my login panel has a wrong language?
- Using meta_query in add_query_arg
- Creating another wordpress site as sub-domain of a wordpress site
- Mixed content and expired session issues with SSL and wp-admin
- Limit access to wp-admin but still be able to log in from different locations?
- How to Filter in the “Add Media Popup” to show only “unattached” Media
- $current_screen if condition for a specific page in admin
- Working with post values in the admin panel
- wordpress login blank screen [closed]
- wp-admin blank page after admin login and all security off
- Can a wordpress admin see my failed Login attempts?
- Cannot Access wp-admin