Meta Box - Elementor Integrator

Meta Box – Elementor Integrator

This free extension integrates Meta Box and Elementor plugins, allowing you to use Elementor to select and show custom fields created by the Meta Box plugin in the templates.

Meta Box fields are available for Post, Archive and Site groups
Meta Box fields are available for Post, Archive and Site groups

Elementor Pro allows you to create templates for posts and pages. On those pages, you can show not only static content added by Elementor, but also dynamic content such as post title and post date. This is called dynamic tags in Elementor.

With Meta Box – Elementor Integrator, you’re able to show the values of custom fields created by the Meta Box plugin in Elementor’s dynamic tags. That helps you build a template for pages, and automatically pull data from custom fields to output on the front end.

And if you have multiple pages using a same template, then you don’t need to touch the page builder every time you create a new post / page. You just need to enter the data into custom fields and they’re automatically displayed on the front end.

Meta Box – Elementor Integrator works with all field types and support multiple elements in Elementor such as heading, text, image and video. And with its help, you don’t have to remember custom field ID. You just need to select them from the dropdown.

Select a Meta Box field
Select a Meta Box field

Video Tutorial

See how to use the plugin to connect Meta Box’s custom fields with Elementor in this video:

Features

  • Supports with all field types
  • Be able to select field from a dropdown, don’t need to remember field name or field ID

View plugin on WordPress.org | View plugin on Github

Meta Box - Beaver Themer Integrator

Meta Box – Beaver Themer Integrator

This extension integrates Meta Box’s custom fields with Beaver Themer. It allows you to easily select and show custom fields created by the Meta Box plugin in the Beaver Themer field connection from a dropdown.

Meta Box – Beaver Themer Integrator works for all field types. And you don’t have to remember the field name or field ID to type. You just need to select it from the dropdown list.

See it in action in the following video:

(Credit to David McCan)

Since version 1.2.0, the plugin supports not only post custom fields, but also term custom fields and settings pages. That means you can pull your website settings such as contact phone number or Facebook link to show on the front end. You can also display category’s custom field like custom color, or custom featured image on the front end.

Please note that in order to show term meta and settings fields in the front end, you need MB Term Meta and MB Settings Page extensions.

Integration with Beaver Themer’s Conditional Logic

Since version 1.3.0, the plugin works smoothly with Beaver Themer’s Conditional Logic on the front end. With this improvement, you’re able to show or hide rows, columns and modules when a Meta Box field has a specific value.

For details and how to set it up, please see this announce post.

Here is the video tutorial:

Features

  • Supports post meta, term meta and settings fields
  • Supports all field types
  • Supports MB Custom Table extension
  • Be able to select field from a dropdown, don’t need to remember field name or field ID

Screenshots

View plugin on WordPress.org | View plugin on Github

Create many-to-many relationships between posts, terms, users

MB Relationships

MB Relationships is a WordPress plugin that helps you create many-to-many relationships between posts, pages, custom post types, terms and users. The plugin is lightweight and optimized for database and query performance.

The plugin allows you to create connections from posts to posts, posts to users and so on. Then you can perform corresponding queries to retrieve posts (or terms, users) that are connected to or from given posts (terms, users).

The plugin also supports reciprocal and bi-directional relationships.

Why Do You Need Posts To Posts Relationships In WordPress?

Post relationships is a missing part in WordPress. The only “built-in” way that mimic the post relationship in WordPress is the post_parent for pages where you can create many child pages of a page (a one-to-many relationship). Unfortunately, that’s available for pages and hierarchical post types only. Besides, it’s not many-to-many relationship.

Below are some examples of posts to posts relationships that might help you see the benefit of this feature:

Creating Related Posts In WordPress

The simplest example is to manually create related posts in your WordPress website. When you edit a post, you can select posts that have similar or related content and display them in the frontend for further reading.

You can also query backward: displaying posts that link to the being read post as a reference to provide more information to your readers. With this, you don’t need a WordPress related posts plugin anymore.

Example: Events And Bands

Suppose you have two custom post types, event and band, where:

  • In each event there may be multiple bands, and
  • Each band can participate in many events.

The relationship is described in this diagram:

Many to many relationship diagram
Many to many relationship diagram

If people want to buy tickets, they could search for events in their location and see what bands are playing on a given date, or they could search for bands they like and see what date they are playing near their location.

In this example, we have created many-to-many relationships between events and bands.

Creating Relationship Between Posts and Terms, Users

In addition to connecting between custom post types, you can use the plugin with MB Term Meta and MB User Meta to connect posts to terms, posts to users and vice versa.

Then you can create a lot of relationships that fit your needs, for example:

  • Connect products (custom post type) and distributors (user), where each product can be distributed by multiple distributors and each distributor can distribute multiple products.
  • Connect singers (user) and songs (custom post type), where each singer can sing many songs and each song can be sung by many singers.

Bi-directional relationships

MB Relationships allows you to create bi-directional connections. You will be able to query back and forth without any problem.

The data is stored in the database as a pair of (from_id, to_id), thus making it independent from either side.

Besides, for each side, there’s a meta box that shows what are connected from/to. So you don’t have to worry about the direction of the connection anymore.

If you have built the relationships with field post or taxonomy_advanced, you will see the difference here. The old way is clearly just one-directional relationship from an object type to another. It will be so hard to query or store the items that connect to a specific post.

An Alternative For The Posts 2 Posts Plugin (P2P Plugin)

Posts 2 Posts is a great plugin for creating relationships between posts and users in WordPress. It has been in the WordPress community for years and is used in thousands of websites.

Unfortunately, its author – scribu – has left WordPress and cannot maintain or develop the plugin. This is a very unfortunate thing for the WordPress community.

We have been receiving suggestions from our users to create such a plugin on the foundation of the Meta Box. So we create MB Relationships to serve this need. Because the plugin is based on the Meta Box, its code is very lightweight and fast. Almost all the work in the admin are is done by Meta Box. This plugin only performs the connection tasks and handles queries for related objects on the frontend.

Inspired by Posts 2 Posts, we have built MB Relationships with a similar code base and API. MB Relationships is kind of a combination between Meta Box and Posts 2 Posts.

Plugin features

Inherit the strengths of both Meta Box and Posts 2 Posts, MB Relationship is lightweight and has a flexible API.

  • Simple APIs: the plugin provides simple APIs for registering relationships and retrieving connected items. It integrates with existing WordPress APIs such as WP_Query,get_terms and get_users. See documentation for more information.
  • Uses custom relationship table to store relationships. That helps optimize the database storage and query performance.
  • You can create relationships between any kind of content in WordPress: posts to posts, posts to users, etc.
  • Supports creating reciprocal relationships (posts-posts, users-users, …).
  • Supports creating bi-directional relationships and easily query them.
  • Display connected items easily with shortcode.
  • Extremely lightweight and fast.
Looking for more details? Check out the plugin documentation.

Screenshots

meta box facetwp integration

Meta Box – FacetWP Integrator

Meta Box – FacetWP Integrator is a free plugin that integrates Meta Box and FacetWP and makes custom fields of Meta Box searchable and filterable in the frontend.

For an e-commerce or a listing website, the product or listing requires custom data such as price, location, color, etc. And users need to search or filter the products / listings in the frontend based on these criteria.

  • With the help of Meta Box, you can create any kind of data (custom fields) for your product / listing or any custom post type.
  • And FacetWP will make products / listings searchable, filterable by those data.

This plugin doesn’t require any configuration. Just install it and you will see Meta Box custom fields appear in the list of options in FacetWP settings.

Screenshots

Meta Box custom fields in the facet settings
Meta Box custom fields in the facet settings
filters in the frontend
Filters in the frontend

Installation

You need to install Meta Box plugin first

  • Go to Plugins → Add New and search for Meta Box
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Install Meta Box – FacetWP Integration extension

  • Go to Plugins → Add New and search for Meta Box – FacetWP Integration
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Make sure you have a license of FacetWP.

Go to Settings → FacetWP to configure your facets.

View plugin on wordpress.org | View plugin on Github

add custom fields to wordpress comments

MB Comment Meta

MB Comment Meta is an extension for Meta Box plugin, which adds custom fields to comments in WordPress. The plugin supports all field types from Meta Box: text, select, color, media, date time, etc. and all the field options.

mb comment meta

It’s worth noting that the meta data (custom fields) in WordPress is available not only for posts, but also for other object types such as taxonomy terms, users and comments. However, these object types don’t have user interface to enter custom fields. WordPress developers have to add manual code to make it work. And that takes quite a lot of time and effort, especially for complex fields such as file upload or date picker.

With the help of Meta Box plugin and MB Comment Meta extension, you’re able to complete this task in a short amount of time. Meta Box provides a solid foundation for all the custom fields work, from building the user interface to handling the data. And MB Comment Meta extension connects the custom fields with comments in WordPress. So, you don’t need to think about how to display fields and how to save the data. All you need to do is just declare which field types you want to add to comments and let MB Comment Meta handle the rest.

MB Comment Meta works like a bridge between Meta Box and WordPress comments. Thus, it supports all the Meta Box features such as cloning fields or custom attributes. All you need to do is one simple line of code.

Installation

You need to install Meta Box plugin first

  • Go to Plugins → Add New and search for Meta Box
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Install MB Comment Meta extension:

  • Go to Plugins | Add New and search for MB Comment Meta
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Usage

Before adding custom fields to comments, it’s important to know how to create a meta box with Meta Box plugin first. The meta box and custom fields are creating by declaring an array of settings in PHP. By default, they’re custom fields for posts.

To make them custom fields for comments, simply add the following line to the meta box settings code in PHP:

'type' => 'comment',

And then, go to edit a comment in the WordPress admin area. The fields will appear as the above screenshot.

It’s important to note that MB Comment Meta works only in the back end. It does not add custom fields for comments in the front end.

Finally, to get values of comment fields and display them in the front end, please see this documentation. It uses the same helper function rwmb_meta to get the field value and display it.

Contribute to MB Comment Meta

MB Comment Meta is an open-source plugin and hosted on Github. If you have any idea, suggestion or any problem, please open an issue or create a pull request to help us improving it.

Download the plugin from WordPress.org | Contribute to the plugin on Github

show custom fields in rest api

MB REST API

MB REST API is a free extension for the Meta Box plugin which pulls all custom fields’ values (meta value) from posts, pages, custom post types, terms into the WordPress REST API responses under meta_box key.

The extension is very helpful when you build apps, themes for WordPress using REST API, which allows you to access more data for posts and terms. By default, WordPress doesn’t return such data.

Custom fields in REST API responses
Custom fields in REST API responses

The extension works with both posts (including pages and custom post types), terms (requires and is compatible with the MB Term Meta extension) and users (requires MB User Meta).

All the meta data is automatically pulled and put in a meta_box key in the response from the Rest API. There’s nothing to configure or code. Just install and use it.

Install

The extension is available on WordPress.org, you can search and install it from the admin area:

  • Go to Plugins | Add New and search for MB REST API
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Don’t forget to install Meta Box and WP Rest API plugins.

View plugin on wordpress.org | View plugin on Github

create custom taxonomies in wordpress

MB Custom Taxonomy

MB Custom Taxonomy helps you to create and manage custom taxonomies easily in WordPress by providing an easy-to-use interface in the admin area.

The plugin allows you to handle all taxonomy’s arguments such as menu labels, admin bar label, exclude from search, disable archive page, etc. just in minutes. You don’t need to write custom PHP code to register custom taxonomies anymore (using the function register_taxonomy()).

Using MB Custom Taxonomy, you will be able to craft the WordPress admin and turn it into a professional Content Management Systems.

Consider using MB Custom Post Type to create and manage custom post types with a similar interface.

Features

  • Supports all arguments for creating custom taxonomies (like register_taxonomy())
  • Supports live editing mode, which auto fill in all necessary labels for you!
  • Clean code
  • Registered custom taxonomies can be exported/imported using default WordPress functionality (no more plugins!)

The plugin is open source and hosted on Github. To update or report issues while using the plugin, please open new tickets.

Using MB Custom Taxonomy in combination with other extensions will help you manage any content types in WordPress easily and make your website more professional.

Screenshot

Create new custom taxonomy
Create new custom taxonomy

Install

You need to install Meta Box plugin first

  • Go to Plugins | Add New and search for Meta Box
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Install MB Custom Taxonomy extension

  • Go to Plugins | Add New and search for MB Custom Taxonomy
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Usage

After activating the plugins, you will see a new menu item Taxonomies in the left menu. Clicking on that will redirect you to the main plugin page where you can create or manage custom taxonomies. Simply fill in the inputs to create new taxonomies.

View plugin on wordpress.org | View plugin on Github

create custom post types in wordpress

MB Custom Post Type

MB Custom Post Type is a free extension for the Meta Box plugin which helps you to create and manage custom post types easily in WordPress by providing an easy-to-use interface in the admin area.

The plugin allows you to handle all post type’s arguments and taxonomy’s parameters such as menu labels, admin bar label, exclude from search, disable archive page, etc. just in minutes. You don’t need to write custom PHP code to register custom post types anymore (using function register_post_type() and register_taxonomy()).

Using MB Custom Post Type extension, you will be able to craft the WordPress admin and turn it into a professional Content Management Systems.

Note: Since version 1.1.0, MB Custom Post Type has integrated MB Custom Taxonomy to create and manage custom taxonomies with a similar interface.

Features

  • Supports all arguments for creating custom post types
  • Supports live editing mode, which auto fill in all necessary labels for you!
  • Clean code
  • Registered custom post types can be exported/imported using default WordPress functionality (no more plugins!)

The plugin is open source and hosted on Github. To update or report issues while using the plugin, please open new tickets.

Using MB Custom Post Type in combination with other extensions will help you manage any content types in WordPress easily and make your website more professional.

Install

You need to install Meta Box plugin first

  • Go to Plugins | Add New and search for Meta Box
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Install MB Custom Post Type extension

  • Go to Plugins | Add New and search for MB Custom Post Type
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Usage

After activating the plugins, you will see a new menu item Post Types in the left menu. Clicking on that will redirect you to the main plugin page where you can create or manage custom post types. Please see the video above to understand how to use the plugin.

View plugin on wordpress.org | View plugin on Github

add custom fields to yoast seo content analysis

Meta Box for Yoast SEO

Meta Box for Yoast SEO is a free extension for Meta Box plugin which allows developers to add content of custom fields to Yoast SEO Content Analysis to have better SEO score.

There are situations when we create custom fields to store real content for the posts. They are actually displayed in the frontend. Search engines such as Google or Bing see them and analyze them. But by default, Yoast SEO plugin takes only post content to analyze for SEO score and gives us feedback based on the post content. The plugin doesn’t analyze the all the content that appears to the search engine, which is a big missing part and that sometimes confuses us in SEO term.

So, the plugin Meta Box Yoast SEO fixes that problem by allowing us to add custom fields to the content analyzed by Yoast SEO plugin. This way, the Yoast SEO plugin and search engine will see the same content and we will have a correct advice for SEO content as well as correct SEO score.

Note: Since version 1.1.0, the plugin works with Yoast SEO 3.0+ which allows you to live preview the result with Javascript.

Screenshots

meta-box-yoast-seo

Install

You need to install Meta Box plugin first

  • Go to Plugins | Add New and search for Meta Box
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Install Meta Box Yoast SEO extension

  • Go to Plugins | Add New and search for Meta Box Yoast SEO
  • Click Install Now button to install the plugin
  • After installing, click Activate Plugin to activate the plugin

Usage

After installing the plugins, just add 'add_to_wpseo_analysis' => true to the fields’ configuration to add them to Yoast SEO Content Analysis.

View plugin on wordpress.org | View plugin on Github