- This topic has 3 replies, 2 voices, and was last updated 1 year, 12 months ago by
Steve.
-
AuthorPosts
-
-
February 13, 2020 at 2:32 pm #9559
cosmocanuckMemberHi! I’ve used Piklist many times, so I’m baffled by what’s happening (and suspecting it’s something obvious that I’m completely failing to see).
I’ve created some CPT’s with a Piklist-dependent plugin. That worked great. But now I want to add some custom fields to one of those types, and despite doing everything right AFAIK, the field do not show up in the editor.
The post type is definitely “homeevents”, as per this line in my plugin which created the CPT:
register_taxonomy( 'homeevents_category', 'homeevents', $args );Here’s my metabox code, stored in
plugins/[my plugin name]/parts/meta-boxes/homeevent-metaboxes.php
<?php /* Title: Homepage Events Info Post Type: homeevents */ piklist('field', array( 'type' => 'datepicker', 'field' => 'homeevent_date', 'label' => 'Date', 'value' => date('M d, Y', time() + 604800), // set default value 'options' => array( 'dateFormat' => 'M d, yy' ) )); piklist('field', array( 'type' => 'text' ,'field' => 'city_state' ,'label' => 'City and State' ,'description' => 'Event city and state' ,'value' => 'San Francisco, CA' ,'attributes' => array( 'class' => 'text' ) )); ?>Even when I change it to
Post Type: postRegular posts don’t show my metaboxes either.
Can you suggest any reason why this wouldn’t be working?
THANK YOU!
-
February 13, 2020 at 2:44 pm #9560
cosmocanuckMemberI realized I should mention, that I’m building this in Divi – which might be an issue (though I realize it shouldn’t be, and in fact I created custom fields in Divi before with Piklist, no problem…)
-
February 13, 2020 at 11:04 pm #9561
cosmocanuckMemberHmm… I should probably retract this question.
Further exploration has shown that custom fields don’t show up even in regular posts… and even if I create them using alternate means than Piklist (like a custom-field plugin). And another Divi site I built has Piklist-created custom fields that are working just fine.
I suspect another plugin is conflicting, or another issue unrelated to Piklist. Sorry! Don’t spend any time on this one for now, anyone! 8^)
-
February 14, 2020 at 9:37 am #9562
SteveKeymasterThanks for the update. Let us know if you need help… or if you find a plugin that conflicts with Piklist.
-
-
AuthorPosts
- The topic ‘Metaboxes just not showing up’ is closed to new replies.