All Projects → CMB2 → Cmb2 Post Search Field

CMB2 / Cmb2 Post Search Field

Custom field for CMB2 which adds a post-search dialog for searching/attaching other post IDs

Labels

Projects that are alternatives of or similar to Cmb2 Post Search Field

Caddy Script
🐳 Caddy installation script
Stars: ✭ 53 (-10.17%)
Mutual labels:  wordpress
Go Search Replace
🚀 Search & replace URLs in WordPress SQL files.
Stars: ✭ 57 (-3.39%)
Mutual labels:  wordpress
Ansible Wordpress
Ansible role to set up (multiple) wordpress installations in Debian-like systems (using wp-cli)
Stars: ✭ 58 (-1.69%)
Mutual labels:  wordpress
Wl Bootstrap
Integrating Laravel into WordPress
Stars: ✭ 54 (-8.47%)
Mutual labels:  wordpress
Better Rest Endpoints
A WordPress plugin that serves up slimmer WP Rest API endpoints.
Stars: ✭ 56 (-5.08%)
Mutual labels:  wordpress
Bedrock Deploy To Wpengine
Bash script to deploy a Roots Bedrock project to WP Engine's hosting platform
Stars: ✭ 57 (-3.39%)
Mutual labels:  wordpress
Phpwpinfo
Provides an equivalent to the `phpinfo()` but with more WordPress requirements details.
Stars: ✭ 52 (-11.86%)
Mutual labels:  wordpress
Assely
Assely introduces some standarized and comfortable ways for creating WordPress powered applications.
Stars: ✭ 59 (+0%)
Mutual labels:  wordpress
Wordpress Zero Spam
The WordPress Zero Spam plugin makes blocking spam a cinch without all the bloated options. Just install, activate, and say goodbye to spam.
Stars: ✭ 56 (-5.08%)
Mutual labels:  wordpress
Wp Rest Api Log
WordPress plugin for logging REST API requests and responses
Stars: ✭ 58 (-1.69%)
Mutual labels:  wordpress
Generator Dhboilerplate
Boilerplate made by David Hellmann
Stars: ✭ 54 (-8.47%)
Mutual labels:  wordpress
Smart Media
Smart Media enhancements for WordPress
Stars: ✭ 56 (-5.08%)
Mutual labels:  wordpress
Themosis
A framework for WordPress developers.
Stars: ✭ 1,089 (+1745.76%)
Mutual labels:  wordpress
Gravityblocks
Gravity Forms blocks for Gutenberg, the new WordPress editor
Stars: ✭ 54 (-8.47%)
Mutual labels:  wordpress
Wordpress Basis Theme
I'm a WordPress starter theme.
Stars: ✭ 58 (-1.69%)
Mutual labels:  wordpress
Framework
Assely is a PHP framework which brings a little joy to the WordPress development. Develop structured, easily scalable and complex WordPress websites and web applications with true pleasure.
Stars: ✭ 53 (-10.17%)
Mutual labels:  wordpress
Genesis Starter Theme
This repo is no longer maintained. The starter theme can now be found at:
Stars: ✭ 57 (-3.39%)
Mutual labels:  wordpress
Briar
Briar, minimalist free WordPress theme
Stars: ✭ 59 (+0%)
Mutual labels:  wordpress
One Time Callbacks
Enable WordPress actions and filter callbacks to be called exactly once.
Stars: ✭ 59 (+0%)
Mutual labels:  wordpress
Spinupwp Composer Site
A WordPress site setup using Composer that is primed and ready to be hosted using SpinupWP.
Stars: ✭ 58 (-1.69%)
Mutual labels:  wordpress

CMB2 Post Search field

Custom field for CMB2 which adds a post-search dialog for searching/attaching other post IDs.

Adds a new text field type (with a button), post_search_text that adds a quick post search dialog for saving post IDs to a text input.

Example

// Classic CMB2 declaration
$cmb = new_cmb2_box( array(
	'id'           => 'prefix-metabox-id',
	'title'        => __( 'Post Info' ),
	'object_types' => array( 'post', ), // Post type
) );

// Add new field
$cmb->add_field( array(
	'name'        => __( 'Related post' ),
	'id'          => 'prefix_related_post',
	'type'        => 'post_search_text', // This field type
	// post type also as array
	'post_type'   => 'post',
	// Default is 'checkbox', used in the modal view to select the post type
	'select_type' => 'radio',
	// Will replace any selection with selection from modal. Default is 'add'
	'select_behavior' => 'replace',
) );

Screenshots

  1. Field display
    Field display

  2. Search Modal
    Search Modal


If you're looking for a more general way to attach posts (or other custom post types) with a drag and drop interface, you might consider CMB2 Attached Posts Field instead.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].