twoelevenjay / cmb2-admin-extension Goto Github PK
View Code? Open in Web Editor NEWCMB2 Admin Extension adds a user interface for admins to create CMB2 meta boxes from the WordPress admin.
CMB2 Admin Extension adds a user interface for admins to create CMB2 meta boxes from the WordPress admin.
Wordpress version: 4.8.3
CMB2 Admin Extension version: 0.1.7
Fresh wordpress install; installed and activated CMB2 plugin and CMB2 Admin Extension, downloaded from Github
Created a Meta box, with two fields. The first is a text field (text fields should be available as repeatable) and marked as repeatable. The second one is a select field with the option 'Include a "none" option' checked. The meta box is applied to to posts.
Creating a new post, I would expect that the text field was repeatable and that would be possible to select a "None" option, while the text field is not repeatable and the "None" option is not available
In the first screenshot the metabox creation; in the second one the post creation
Wordpress version: 4.8.3
CMB2 Admin Extension version: 0.1.7
Fresh wordpress install; installed and activated CMB2 plugin and CMB2 Admin Extension, downloaded from Github
Created a Metabox with a select field; added select options as in the example included in the description of the field:
sml,Small
med,Medium
lrg,Large
when adding a post, in the dropdown appear unnecessary options, i.e.
0 => sml,Small
1 => med,Medium
2 => lrg,Large
sml => Small
med => Medium
lrg =>Large
while I was expecting only 3 options to appear
below the screenshots of the metabox creation form and of the post creation form, with the wrong options
Even though I have activated the extension for CMB2 it is not showing.
in one of my projects i used CMB2-Admin-Ext to create a gallery filed. then i wanted to extract those images in a separate single.php file, so i used this code :
$images = get_post_meta( $post->ID, '_photos', true);
the meta key _photos
was foun in the database, it will be good if you add a field in CMB2-Admin-Ext to allow the admin define the meta key because actually i'm spending a lot of time searching how this plugin defines the meta key
Not an issue per say, but a request. It would be awesome if one could export the metabox code like one can do with CPT UI. This allows for fairly rapid prototyping. Great plugin!
Hi Leon,
I noticed you were trying to get travis working. What are the tasks you would like travis to do ?
If you like I can add a script which will work & do the following:
If at some point you'd want to add unit tests to the repo as well, I can set that up too (but not before as it's useless running the test suite if you have no tests for the plugin).
Let me know if that would be helpful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.