• Demo
  • Online Generator
  • My Account

Meta Box

Best WordPress Plugin for Custom Fields & Meta Boxes

  • Features
  • Pricing
  • Extensions
  • Support
    • Documentation
    • Support Forum
  • Blog
  • Get Meta Box

Reply To: Password Protection and metaboxes

Anh TranDecember 12, 2018
Home / General / Password Protection and metaboxes / Reply To: Password Protection and metaboxes

Custom Fields
Re-Envisioned
› Support › General › Password Protection and metaboxes › Reply To: Password Protection and metaboxes

December 12, 2018 at 4:49 PM #12614

Anh Tran
Keymaster

Hi Ale,

This depends on how you display custom fields’ values in the front end. You need to change your code to check the post status, like this:

if ( post_password_required() ) {
    echo 'Nothing here';
} else {
    echo rwmb_meta( 'field_id' );
}
This support forum is for premium users only. For free plugins, please use Github or WordPress.org forum.

Register | Forgot password?

Search Forums

Forums

  • Announcements
  • General
  • MB Admin Columns
  • MB Comment Meta
  • MB Custom Post Type
  • MB Custom Table
  • MB Custom Taxonomy
  • MB Elementor Integrator
  • MB Frontend Submission
  • MB Relationships
  • MB REST API
  • MB Revision
  • MB Settings Page
  • MB Term Meta
  • MB User Meta
  • MB User Profile
  • Meta Box – Beaver Themer Integrator
  • Meta Box – FacetWP Integrator
  • Meta Box AIO
  • Meta Box Builder
  • Meta Box Columns
  • Meta Box Conditional Logic
  • Meta Box for Yoast SEO
  • Meta Box Geolocation
  • Meta Box Group
  • Meta Box Include Exclude
  • Meta Box Show Hide (Javascript)
  • Meta Box Tabs
  • Meta Box Template
  • Meta Box Text Limiter
  • Meta Box Tooltip
  • Meta Box Updater

About

We created Meta Box in 2010 to help developers to create custom meta boxes faster and easier. Now, Meta Box is not only a library with powerful API for custom fields, but also a framework that helps you control your data the way you want.

Quick Links

  • Pricing
  • Features
  • Extensions
  • FAQ
  • Affiliate
  • Contact

Top Extensions

  • Meta Box Builder
  • Meta Box Group
  • MB Relationships
  • MB Custom Table
  • MB Settings Page
  • MB Custom Post Type
  • MB Frontend Submission
  • Meta Box Conditional Logic

Connect With Us

  • Facebook
  • Twitter
  • GitHub
  • YouTube

Our Network

  • GretaThemes
  • WPAutoListings
  • ProWCPlugins
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
Copyright 2019 Meta Box.
elightup

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.

grid gear info copy caret-up caret-down trash