CMB2
CMB2 is a developer’s toolkit for building metaboxes, custom fields, and forms for WordPress that will blow your mind. Easily manage meta for posts, terms, users, comments, or create custom option pages. CMB2 is a complete rewrite of Custom Metaboxes and Fields for WordPress. To get started, please follow the examples in the included example-functions.php file and have a look at the basic usage instructions. You can see a list of available field types here. Contribution Development occurs on Github, and all contributions welcome. Please read the CONTRIBUTING doc for more details. A complete list of all our awesome contributors found here: github.com/CMB2/CMB2/graphs/contributors Features: Create metaboxes to be used on post edit screens. Create forms to be used on an options pages. Create forms to handle user meta and display them on user profile add/edit pages. Create forms to handle term meta and display wherever your taxonomies are used. Flexible API that allows you to use CMB forms almost anywhere, even on the front-end. Several field types are included. Custom API hook that allows you to create your own field types. There are numerous hooks and filters, allowing you to modify many aspects of the library (without editing it directly). Repeatable fields for most field types are supported, as well as repeatable field groups. CMB2 is safe to bundle with any project. It will only load the newest version in the system. Translation If you are looking to provide language translation files, Please do so via WordPress Plugin Translations. Documentation CMB2 documentation can be found at the CMB2 wiki on github. Also, If you’re into reading code and inline documentation, we tried to keep all functions and methods fully inline-documented. 3rd Party Resources Custom Field Types CMB2 Field Type: CMB Attached Posts Field from coreymcollins: custom_attached_posts, for attaching posts to a page. CMB2 Field Type: Post Search Ajax by alexis-magina: post_search_ajax Attach posts to each other. Same approach as CMB2 Attached Posts Field but with Ajax request, multiple/single option, and different UI. CMB2 Field Type: Ajax Search from rubengc: 3 different fields with the same UI in AJAX to search (with query parameters) to users, post type and taxonomy terms. CMB2 Field Type: CMB2 User Search field from Mte90: user_search_text adds a user-search dialog for searching/attaching other User IDs. CMB2 Field Type: Google Maps from mustardBees: Custom field type for Google Maps. The pw_map field stores the latitude/longitude values which you can then use to display a map in your theme. CMB2 Field Type: Leaflet Maps from villeristi: Custom field type for Leaflet Maps. CMB2 Field Type: Select2 from mustardBees: Custom field types which use the Select2 script: The pw_select field acts much like the default select field. However, it adds typeahead-style search allowing you to quickly make a selection from a large list The pw_multiselect field allows you to select multiple values with typeahead-style search. The values can be dragged and dropped to reorder CMB Field Type: Slider from mattkrupnik: Adds a jQuery UI Slider field. WDS CMB2 Date Range Field from dustyf of WebDevStudios: Adds a date range field. CMB2 Remote Image Select from JayWood of WebDevStudios: Allows users to enter a URL in a text field and select a single image for use in post meta. Similar to Facebook’s featured image selector. CMB Field Type: Sorter: This plugin gives you two CMB field types based on the Sorter script. CMB Field Type: Tags: WordPress-Tags-like field type for CMB2. note: this does not set the post tags, but simply provides a unique text input CMB Field Type: Link Picker: Using the Link Picker for CMB2 control, you can choose a link from your WordPress site, or manually enter a link. You can also identify if the link should open in a new window, or not. CMB Field Type: MultidatesPicker: Creates a CMB2 field type that enables a multiple date calendar. It uses a plugin called MultiDatesPicker v1.6.3 for jQuery UI. CMB Field Type: CMB2-radio-image: Image as radio buttons. CMB2 Term Select: Special CMB2 Field that allows users to define an autocomplete text field for terms. Note: this will set the taxonomy terms, but has the option ('apply_term' => false) to disable and save the term ids as data instead (like for options pages, etc). CMB2 Related Links: Allows users to add a related links via a repeating field group. Field inputs are powered by the CMB2 Field Type: CMB2 Post Search field documented above, and so each link can be populated with existing WordPress content by clicking on the search button. Note: this is not a standard field type, but instead a function you use in combination with CMB2::add_field(). CMB2 Field Type: Order by rubengc: Allows users to define custom order of predefined options. CMB2 Field Type: Animation by rubengc: Allows users to pickup an animation from Animate.css (includes preview of chosen animation). CMB2 Field Type: Ajax Search by rubengc: Based on CMB2 Field Type: Post Search Ajax, adds the ability to attach posts/users/terms, and the ability to limit the maximum number of attached objects. CMB2 Field Type: Visual Style Editor by rubengc: Custom field for CMB2 which allows customizing style from a small set of controls. CMB2 Field Type: Content Wrap by rubengc: Custom field for CMB2 to store a content wrap values (padding, margin or border width). CMB2 Field JS Controls by rubengc: Show any field similar to WordPress publishing actions (Post/Page post_status, visibility and post_date submit box field). CMB2 Field Type: Position by rubengc: CMB2 field type to setup a jquery UI position values. CMB2 Field Type: CMB2 Roadway Segments by pixelwatt: This plugin adds a new CMB2 fieldtype for drawing roadway segments onto a map and provides a shortcode for display. CMB2 Field Type: Font Awesome by serkanalgur: This plugin adds a new CMB2 field type for selecting Font Awesome icons. CMB2 Field Type: Typography by eduplessis: This plugin adds a new CMB2 field type “Typography” and it use jQuery fontselect for the font-family selection. CMB2 Field Type: Markdown by Rekenna: This plugin adds a new CMB2 field type “CMB2 Markdown” where you can type in markdown and view a live preview of the results or convert to html with a button. CMB2 Field Type: Switch Button by themevan: This plugin adds a Custom Switch Button field type for CMB2. CMB2 Field Type: select_plus from manzoorwanijk: Select field type which acts much like the default select field. However, it adds the support for optgroup and saving of values with multiple attribute. CMB2 Field Type: Address by scottsawyer: Just a simple, repeatable address field. It’s really just the snippet from CMB2 Snippet Library converted to a plugin. CMB2 Field Type: Link by scottsawyer: Create a link field with some attributes. Very nice for styling links. CMB2 Field Type: Widget Selector by scottsawyer: Need a field that lets you ( or your editor ) select / display an existing widget instance? Then this is the plugin for you. Other Helpful Resources CMB2 WooCommerce HPOS Orders: Adds the ability to add custom fields to the new WooCommerce HPOS orders page. CMB2 Admin Extension: Adds a UI to create CMB2 meta boxes from the WordPress admin. Also on wordpress.org. WordPress Shortcode Button: Uses CMB2 fields to generate fields for shortcode input modals. WDS-Simple-Page-Builder: Uses existing template parts in the currently-active theme to build a customized page with rearrangeable elements. Built with CMB2. CMB2 Example Theme: Demonstrate how to include CMB2 in your theme, as well as some cool tips and tricks. facetwp-cmb2: FacetWP integration with CMB2. CMB2-grid from origgami: A grid system for WordPress CMB2 library that allows the creation of columns for a better layout in the admin. CMB2 Metatabs Options from rogerlos: CMO makes it easy to create options pages with multiple metaboxes–and optional WordPress admin tabs. CMB2 Conditionals from jcchavezs: Allows developers to relate fields so the display of one is conditional on the value of another. CMB2 Metabox Code Generator from willthemoor: Skip the boring bits. Use this generator to create fully functional CMB2 metaboxes easily. Now with bulk entry! Caldera Metaplate by CalderaWP: Not specific to CMB2, but allows creating templates for outputting your custom fields. Yoast CMB2 Field Analysis WP Plugin by alexis-magina: This plugin adds in a js based method of recalculating Yoast SEO’s content scores when updating page content, specifically custom meta fields added via the CMB2 library. Skeleton by awethemes: A complete framework for WordPress, uses CMB2 engine. WP Simple Iconfonts by awethemes: An icon fonts manager and provides a font icon picker for CMB2. CMB2 Nav Menus by nsrosenqvist: Lets you use CMB2 in nav menu entries.. Links Project Homepage Github project page Documentation (GitHub wiki) Snippet Library View CHANGELOG Known Issues Metabox containing WYSIWYG editor cannot be moved or used in a repeatable way at this time (this is a TinyMCE issue). Not all fields work well in a repeatable group.
Top keywords
- field76×5.04%
- cmb275×4.97%
- type43×2.85%
- field type41×2.72%
- cmb2 field32×2.12%
- cmb2 field type29×1.92%
- custom16×1.06%
- adds14×0.93%
- allows12×0.80%
- search12×0.80%
- wordpress12×0.80%
- fields11×0.73%
YS LeadGen – Popup Builder, Popup Maker & Form Builder for WordPress | Lead Generation,
Powerful Free Version | Optional PRO Upgrade | Pricing Most website visitors leave without signing up, subscribing, or buying anything. YS LeadGen helps you turn more of them into email subscribers, leads, and customers — using popups and forms you build yourself, right inside WordPress. No coding. No monthly subscription. No limit on how many people sign up. Why WordPress users pick YS LeadGen: ✅ A real free plugin, not a demo – the free version isn’t a limited trial; you can run full campaigns with it ✅ No limit on subscribers – your email list can grow as big as you want, and it still costs nothing ✅ Your leads stay on your own website – names and emails are saved in your WordPress database, not sent to another company by default ✅ Nothing extra to sign up for – no separate account, no other website to log into; everything happens in your WordPress dashboard ✅ 13+ ways to reach visitors – popups, slide-ins, forms, spin wheels, quizzes, and more, all in one plugin ✅ PRO available if you want more – a one-time payment (not a subscription) unlocks extra templates and advanced tools, whenever you’re ready Build Beautiful Popups with an Easy Visual Builder YS LeadGen comes with an intuitive drag-and-drop-style builder that lets you create custom popup and form designs in minutes. Add text, images, countdown timers, and buttons while previewing your changes live. No coding, no confusion — just simple, visual control over how your campaign looks and behaves. Every design is fully responsive, so your popups look great on desktop, tablet, and mobile. Choose from Multiple Campaign Types YS LeadGen gives you the flexibility to design campaigns that fit your goals: Lightbox popups for email opt-ins and offers Exit intent popups for visitors about to leave Floating bar / announcement bars for site-wide messages and promo codes Corner slide-ins that don’t cover the page Inline signup forms placed directly inside your content Spin-to-win coupon wheels for interactive offers Multi-step forms that break long forms into easy steps Quizzes that deliver a personalized result Countdown timers that create urgency around a sale Content lockers for gated content and downloads Social proof popups showing recent activity Video popups for YouTube, Vimeo, or self-hosted video Floating badge buttons that open a popup on click Each style feels modern and non-intrusive, keeping visitors engaged without hurting their experience. Every campaign is fully responsive out of the box, and since phones don’t have a mouse to track, mobile exit intent uses a fast scroll-up gesture or back-button tap instead — so you don’t lose that last chance to convert on mobile traffic. Smart Targeting & Trigger Controls You decide exactly where, when, and to whom your campaigns appear. Use smart targeting options like: Page-level targeting – show on specific pages, posts, categories, or WooCommerce products Device targeting – show or hide on mobile, tablet, or desktop Location targeting – target visitors by country or city Traffic source targeting – target visitors from a specific search engine, ad, or referral On-site retargeting – stop showing offers to visitors who already converted Rule combinations – combine conditions with AND/OR logic Trigger your campaigns with behavior-based controls such as: Exit intent – when a visitor is about to leave Time delay / scheduling – after a set amount of time, or during a scheduled period Scroll depth – after a visitor reaches a chosen percentage of the page Click trigger – on a button, link, image, or menu item These options let you build campaigns that appear at the right moment without annoying your audience. Built for WooCommerce If you run a WooCommerce store, YS LeadGen helps you engage shoppers at the moments that matter most: Cart triggers – show a popup when a product is added to the cart Checkout triggers – display a message when shoppers reach checkout Cart value rules – trigger campaigns based on cart value or selected products Dynamic coupons – generate and apply a discount code on signup Cart recovery emails – follow up with shoppers who leave without buying Product recommendations – show related products or bestsellers inside a campaign Add a countdown timer to any campaign to push flash sales and limited-time offers over the line, and schedule campaigns with set start and end times so seasonal promotions run automatically — even while you’re offline. Forms and Payments Use the built-in form tools to collect exactly the information your business needs: Custom form fields – build contact and lead forms with the fields you choose Direct payments – collect payments inside a form via Stripe, PayPal, or Square Test mode – test payment forms before going live Works with other form plugins – add popup triggers and tracking to Contact Form 7, WPForms, Gravity Forms, or Fluent Forms Stunning Templates for Every Campaign No design experience? No problem. YS LeadGen includes a large library of pre-made templates crafted to look professional and convert effectively. Every template is customizable with your own branding, colors, and fonts, so you can launch a polished campaign in minutes instead of hours. Browse the full template library to see what’s available. Measure Success with Detailed Analytics YS LeadGen’s analytics dashboard helps you track performance in real time, including: Campaign analytics for views, conversions, and leads Cart recovery and coupon performance for WooCommerce Form performance and conversion rates Centralized lead management across all your campaigns These insights help you optimize designs, adjust targeting, and continuously improve results. Integrate with Your Favorite Tools YS LeadGen connects seamlessly with the tools you already use: Email marketing – Mailchimp, HubSpot, Brevo, Klaviyo, ActiveCampaign, MailerLite, Kit, GetResponse, AWeber, Drip, and Omnisend Webhooks – send lead data to Zapier, Make, or other services Analytics – track campaign events in Google Analytics 4 Page builders – Elementor, Divi, Gutenberg, Bricks, Beaver Builder, and Oxygen These integrations help you sync data, manage leads, and automate follow-ups — saving time while improving marketing results. Privacy and Trust Built In GDPR cookie consent – a built-in banner can block tracking scripts until a visitor consents Age verification – an optional age-check gate for restricted content or products Spam protection – Google reCAPTCHA helps block unwanted bot submissions A/B testing – compare two versions of a campaign to see which converts better Built for Your Whole Team, Powered by Your Own Data Business owners capture leads and recover lost sales. Designers build fully branded popups that match the site. Developers manage every campaign directly in WordPress — with no separate SaaS platform required. All of it runs on your own WordPress database. Subscriber and lead data stays on your site, not an outside company’s servers, so there’s no monthly bill that grows with your list and no subscriber limit, ever. YS LeadGen is also built for speed: popup code only loads on pages with an active campaign, so every other page on your site loads exactly as fast as it did before. What’s Free vs. What’s in PRO The free plugin is not a limited trial. It includes real campaign building with no subscriber cap, so most people can run their entire lead generation strategy on the free version alone — PRO is there if you want extra templates or automation later. Included free, no time limit: Visual popup and form builder Lightbox, exit intent, floating bar, slide-in, and inline campaigns Spin-to-win, quiz, content locker, and video popups Countdown timers and campaign scheduling Page-level, device, and location targeting Exit intent, scroll, click, and time-delay triggers Full WooCommerce cart and checkout triggers Custom form builder with payment fields Campaign analytics and lead management dashboard GDPR cookie consent and age verification A/B testing Email marketing and webhook integrations PRO adds (one-time lifetime pricing, no subscription): Extra premium templates and design assets Advanced automation and AI-assisted features Priority support See the full pricing breakdown for details. PRO is entirely optional — most users never need to upgrade to run effective campaigns. Try It, Then Decide The live demo lets you build a real campaign in your browser — no account required. The documentation includes step-by-step setup guides, and the template library gives you hundreds of ready-made designs to launch faster. Grow your list, capture more leads, recover lost sales, and keep full ownership of your data — all from inside WordPress. Privacy YS LeadGen runs entirely on your WordPress website. The plugin does not collect personal information unless you configure forms or connect third-party services. Depending on the integrations you enable, visitor information may be processed by third-party email marketing platforms or marketing services that you choose to connect. You remain in full control of your website data, customer information, and marketing campaigns. Review your website’s privacy policy and applicable regulations to ensure compliance with local privacy laws.