A quick fix would be to insert some custom javascript in WP Admin. You can target the field by its ID, then just add the disabled
attribute to the input. The user will be able to see it, but not change it.
Obviously you’ll have to use an if statement to allow you to edit it as an administrator but disable it for the user.
Related Posts:
- Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
- Any post install tips after installing WordPress 3.0.1?
- Version Control: Entire site or just pieces?
- Getting a stack trace when an error occurs?
- Multiple WordPress sites with docker
- .maintenance and maintenance.php also in multisite install?
- how to redirect to a custom password retrieval page
- Is there a plugin to make attaching images easier?
- Custom category order with get_categories
- Maintaining synced staging/production WP sites
- WordPress Multi Site Best Practice
- Sub posts and non unique post_name
- Pagination Help on Crazy Custom Authors Page
- Getting rid of the #038; when string replacing content
- How to let a single post have its own domain name
- page_template toggle between 2 templates + 2 permalinks for same post
- Redirect to requested page after (custom) login
- How to instantly delete posts/pages permanently?
- How to re-arrange media uploaded using : media_handle_upload() as per year / month
- How could we customize the all posts page in the admin panel?
- How do I perform a “get” call to an external API, and then display the JSON results on a page in my WordPress site?
- How to build a child theme from a react-based parent theme?
- Adding Pagination on a Custom Author Page
- How can I get the page url slug when ‘post_name’ returns an id?
- Woocommerce Product page edit
- Convert an theme options page to use in customize.php also?
- The best way to write an FAQ page?
- Multiple Tinymce/wp_editor in WordPress >4.8
- Get Value from Column in Plugin Table [closed]
- How to provide a demonstration of WordPress for new customers
- The Best Way to always load the newest version of 3rd party code
- Theme licensing and permission on changing content [closed]
- Add ‘Creator’ User Meta when adding user
- Using Fullscreenr with a wordpress blog – weird bug
- Determining What Content Gets Displayed
- Showcase elementor templates
- Add clickable arrows to parent menu items with children elements e.g. with
- Display User ID instead of Name or Username
- Woocomerce custom billing address fields display in order details [closed]
- Bind JS event to WordPress control customizer
- Edit sticky header html – How to locate corresponding php file
- How can I setup up an a pre-populated pdf based on what was entered? [closed]
- Get rid of title from static front page
- Make custom page look exactly as homepage
- $wpdb->insert running multiple times?
- OrderBy multiple custom meta fields
- Track usernames with piwik [closed]
- Woocommerce – Print Product’s Custom Field In Email
- Get wordpress taxonomy slug name(s) to use as div class
- Why does my Posts page only show a single post when using Thematic?
- Specific colours for wordpress author ids
- Applying WP-cli Search & Replace to Static SQL Dump File
- How do I list custom taxonomy terms with the links?
- How to unpixelate logo?
- Remove header title form page through CSS [closed]
- Create a Page template selector page
- How Can I limit the visible part of the short-description on the Category page?
- custom css and javascript not working on page defined as template?
- Create Unique ID for user
- Missing current_page_item in custom menu
- Attach File Funcion for Common people
- Custom Database Table and foreach
- Hook before user is created and make some custom validation
- How to get Previous Visited Page Information
- How to add Custom Css within the Editor?
- Easily add custom HTML outside the main container?
- Adding a custom field to a slug
- Query Product categories what have a custom field
- adding fade on mouseover to images
- Customize section does not show my widget areas
- Make Widget appear on Dashboard
- Woocommerce dependent attributes
- clickable toggle menu, help
- WordPress Customizer: Check for value of CSS selector and replace it
- twenty seventeen customizer duplicates section content
- How to append the excerpt to the content in the single post page?
- How to add custom Author Info Box to blog posts “only” and NOT custom post templates
- Bio comes up when the visitor clicks on a picture
- How to find and replace (or add) specific word in a specific category?
- WooCommerce – Adding custom HTML to specific product pages
- How do I move my sites to a child theme without loosing customisation?
- Displaying all Custom fields on post except some
- WordPress Install – “end of script output before headers” when running simple php script
- How to appoint different users to different pages?
- How to replace part of shortlink with nothing
- Is there a way to hide a user’s posts from their Activity feed?
- customize footer widgets area
- Setting up staging area
- Accessing + retrieving custom database in WordPress
- Word Press Theme Customiser and Child theme Function.php
- Security Issues with custom user role or changing core role capabilities?
- adding new html css to wordpress section from codepen [closed]
- Do i need to use PHP in customizer api?
- Add variable : 1 Week ago
- When is it OK to create a custom table for a plugin? [duplicate]
- how do i add logo in my site
- Show total sales for each products on search results page Woocommerce
- Changes to code not displaying
- Permalink Listing WordPress
- Has the table name in SQL for WordPress changed from WP_posts to WPCS_post?