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%
Yoast SEO – Advanced SEO with real-time guidance and built-in AI
Real-time SEO guidance, schema, and AI built in. Help search engines and AI systems understand your content. All AI tools included, no hidden fees. Yoast SEO: the #1 WordPress SEO plugin Since 2008, Yoast SEO has helped site owners get their content found. More than 10 million websites now run it, from small local businesses to some of the most visited sites on the web. Our mission is SEO for everyone. You should not need a specialist, a big budget, or a technical background to give your content a fair chance of being discovered. Yoast SEO gives you everything you need to manage your on-site SEO. The Yoast SEO Premium plugin and its extensions unlock more advanced and AI-powered tools. Ready for search, and ready for AI People no longer only type queries into Google. They ask AI assistants, and those answers are built from content the AI has crawled, understood, and trusted. Yoast SEO helps you prepare for both. Schema.org structured data, so search engines and AI systems can understand what your content is actually about. Premium outputs significantly more schema types, including the E-E-A-T signals (experience, expertise, authoritativeness, and trustworthiness) that help AI systems understand who you are. Schema aggregation for NLWeb (Premium), which combines your site’s structured data into a single, deduplicated graph, so AI agents get a complete picture of your content in one request. Turn it on with a single toggle. LLMs.txt management, to guide how large language models interact with your content, including manual control over which pages are included. Bot blocker (Premium), to control which AI crawlers can use your content for training, including GPTBot, CCBot, and Google-Extended. Abilities API, so AI tools, dashboards, and automated workflows can read your SEO, readability, and inclusive language scores directly. Algorithm changes have been arriving for over 15 years, and Yoast has tracked every one of them. Keeping the plugin updated means you benefit from ongoing technical improvements, schema updates, and AI advancements automatically, all guided by our signature traffic light approach. Real-time guidance while you write SEO is one of the most consistent and cost-effective sources of website traffic, though it can be complex. Whether you are just starting out or you have done this for years, Yoast SEO tells you what to fix before you publish, not after. Red, orange, green. That is the whole idea. You get in-depth content and readability analysis that helps you create content designed to perform well in search, without needing to learn a new discipline first. Quick and easy setup Setting up Yoast SEO is quick and straightforward. No technical background required. Our step-by-step configuration wizard walks you through the essentials, so Yoast SEO can generate accurate structured data that helps search engines understand your site. Switching from another SEO plugin? Migration is seamless. You can import your existing SEO data and settings safely with our built-in import and export tools. AI tools built into your workflow Yoast’s AI tools come with Yoast SEO Premium, and they sit inside the editor you already use. There is no separate AI subscription, no extra login, and no credit top-up to buy. Every suggestion waits for your approval before anything saves. Yoast AI Generate: creates five SEO-friendly titles and meta descriptions instantly, with one-click regeneration for more options. Yoast AI Optimize: suggests improvements to keyphrase placement, including introduction, distribution, and density, with the option to apply or dismiss each edit. Yoast AI Summarize: generates a quick summary of your post to place anywhere in the block editor, so readers grasp the value fast. Yoast AI Content Planner (Premium): suggests five site-specific post ideas and builds a structured starter draft the moment you open a new post. Ideas are grounded in your own site, not generic topics, so your team never begins from a blank page. Bulk editor with AI drafts: review and fix titles, meta descriptions, and focus keyphrases across your whole site from one workspace, with search and status filters and a dedicated view per content type. The bulk editor is free. With Premium, select what needs work and AI drafts the metadata, including social sharing titles and descriptions, for you to approve. All AI tools included: no extra accounts, no separate credit purchase, no hidden costs. Content analysis and optimization SEO analysis to guide your keyword targeting, with up to 5 keyphrases in Premium and support for 20+ languages. Readability analysis for clear, engaging, user-friendly writing. Inclusive language analysis, so your content is more considerate and accessible. SERP previews for both desktop and mobile results. HowTo and FAQ blocks with built-in schema support. Breadcrumbs block for improved navigation. Semrush integration for keyword research directly inside Yoast SEO. Wincher integration to track keyword performance from your dashboard. Elementor integration for optimization inside your favorite builder. Technical SEO, handled for you Yoast SEO takes care of much of your site’s technical SEO automatically, which frees you to focus on your content. Automated meta tag optimization right out of the box. Canonical URLs to prevent duplicate content issues. Advanced XML sitemaps for clear site indexing. Deep Schema.org integration to improve how search engines and AI systems understand your site. Complete breadcrumb control for visitors and crawlers. Performance improvements that help reduce load times. Crawl settings to manage how bots access your site and reduce unnecessary server load. Every update delivers ongoing technical SEO enhancements automatically. Keep your website in perfect shape Whether you are a creator, a business owner, or a developer, Yoast SEO helps you maintain your site’s SEO health: Cornerstone content tools to organize and prioritize your key pages. Front-end SEO inspector to view and edit titles, descriptions, and schema live. SEO roles to delegate plugin access securely across your team. Regular 2-week update cycle, so you stay compatible with the latest SEO standards and search engine changes. Powerful integrations Yoast SEO works seamlessly with popular WordPress tools: Google Site Kit: access insights from Search Console, Analytics, and PageSpeed inside WordPress. Advanced Custom Fields (ACF): combine with ACF Content Analysis for Yoast SEO for advanced field optimization. Elementor: use full Yoast SEO functionality inside Elementor’s editor. Algolia: improve internal search accuracy and performance. Semrush: discover and optimize for high-value keywords. Wincher: track keyword positions and trends in Google Search. Jetpack: manage SEO and social previews in one place. Easy Digital Downloads (EDD): improve digital product visibility with integrated schema. Mastodon: verify your website on Mastodon with Yoast SEO Premium. WooCommerce: optimize ecommerce SEO with the dedicated WooCommerce extension. Yoast SEO Premium: AI-powered SEO for WordPress Yoast SEO Premium builds on everything above with advanced automation, AI tools, and professional support. It helps you optimize efficiently for both traditional search and AI-driven discovery. What it helps you tackle: Keeping pace with algorithm changes and AI search. Reaching the right audience. Automating redirects, crawl controls, and internal linking. Finding orphaned content and improving your site structure. Getting expert help when you need it. Premium highlights: AI-generated titles and meta descriptions, page by page or in bulk. AI Content Planner, so you never open a blank page. Smart internal linking suggestions to strengthen your site structure. Social previews for Facebook and X. Redirect manager with bulk tools, CSV import and export, and automatic prompts when you move or delete content. Bot blocker for AI crawlers, including GPTBot, CCBot, and Google-Extended. Schema aggregation for NLWeb, plus significantly more schema types than free. IndexNow integration, so search engines hear about your updates the moment you publish. Front-end SEO inspector for real-time editing. SEO workouts for orphaned and cornerstone content. Task list, unlocked in full, showing what to work on next with priority levels and time estimates. Google Docs add-on, so writers can run the full Yoast analysis before content ever reaches WordPress. One seat included. 24/7 premium support from SEO specialists. Included at no extra cost: Yoast Local SEO: help nearby customers find you, with local schema, a store locator, and opening hours management. Yoast Video SEO: help Google understand your videos, with video sitemaps and schema. Yoast News SEO: help your news content get discovered in Google News and Top Stories. Yoast WooCommerce SEO: advanced SEO for online stores Yoast WooCommerce SEO builds on Yoast SEO Premium with ecommerce-specific tools for your store’s visibility. Key ecommerce features: WooCommerce-specific XML sitemap that excludes non-shopping content. Product structured data for rich results, including price, reviews, and availability. Canonical URL management to prevent duplicates. Ecommerce-focused content analysis for GTINs, SKUs, and short descriptions. AI Generate for ecommerce: optimized titles and meta descriptions for product and category pages, at page level or drafted in bulk for products and categories. What that gets you: Better product visibility through automated structured data. More efficient crawling for large catalogs. Time saved through metadata templates and automation. Metadata across your whole catalog without editing rows one at a time. Built for WooCommerce, trusted by thousands of online stores worldwide. For developers Yoast SEO is built with developers in mind. With modern APIs, hooks, and a unified indexables system, you can extend or integrate SEO functionality across custom themes, plugins, or headless setups. REST API Retrieve SEO metadata for any post or URL, including meta tags, Open Graph, Twitter Cards, and Schema.org data. Learn more about the REST API. Surfaces API Access SEO data directly in code via YoastSEO()->meta->for_current_page(). Supports titles, descriptions, canonicals, and schema. Read the Surfaces API documentation. Metadata API Use the Metadata API to filter, override, or extend meta tags with WordPress hooks such as wpseo_title, wpseo_metadesc, and wpseo_canonical. Schema API The Schema API lets you modify or extend Schema.org graph pieces, including Article, Organization, Person, Breadcrumb, and WebPage entities. Abilities API integration Let AI tools, dashboards, and automated workflows read Yoast SEO data programmatically, including SEO, readability, and inclusive language scores for recent posts. Block editor compatibility Yoast SEO integrates directly with the WordPress block editor. It outputs schema for HowTo and FAQ blocks by default, and you can extend schema for custom blocks. Indexables At the core of Yoast SEO lies the indexables system, unifying all SEO data for faster queries and consistent metadata across outputs. Ongoing support and education Yoast is powered by expert developers, testers, and SEO specialists who keep improving the plugin. We are committed to helping you grow your SEO skills: Yoast SEO Academy: free and premium SEO courses, included in all paid plans. Yoast SEO blog, newsletter, and webinars. Yoast SEO Update podcast for the latest SEO insights. Bug reports on GitHub, for issue tracking rather than support. Yoast SEO: built to make search optimization accessible, reliable, and ready for the future of AI search.