@tw2113
I assumed this would mean the “key” beginning field_*
, eg. field_5b39e6dc170b7
.
Turns out, that doesn’t hook up with my first CMB2 field – but the human name I gave that field, source_url
, does.
Is that right?
With the following…
<pre><code>// URL text field
$cmb->add_field( array(
'name' => __( 'Website URL', 'cmb2' ),
'desc' => __( 'field description (optional)', 'cmb2' ),
'id' => 'source_url',
'type' => 'text_url',
// 'protocols' => array('http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet'), // Array of allowed protocols
// 'repeatable' => true,
) );
`
… I was able to place a CMB2 field that correctly shows on the edit page, even if I deactivate ACF Pro. Seems great!
So, in this scenario, am I close to being able to kick ACF?
—
Separately, I’m also surprised to see a whole “Custom Fields” box on the post page, showing all custom post meta.
I hadn’t seen that before, and it looks like it belongs to neither ACF nor CMB2 but, rather, is part of WP. I didn’t know this.
Even without either ACF or CMB2, I guess I could manage post meta in a rudimentary fashion using this?
-
This reply was modified 2 years, 3 months ago by
parakeet.