MB Term Meta not showing the fields
Support › MB Term Meta › MB Term Meta not showing the fieldsResolved
- This topic has 7 replies, 2 voices, and was last updated 8 years, 7 months ago by
Anh Tran.
-
AuthorPosts
-
March 20, 2017 at 7:54 PM #5340
thelemonlab
ParticipantHi there,
trying to add the mb term meta to a custom post type, below my code.
Any thoughts? so far only show the 'title' => 'Event Type Custom Fields' nothing else.https://ghostbin.com/paste/h5y8m
Thanks a lot!
CarlosMarch 21, 2017 at 9:37 AM #5349Anh Tran
KeymasterHi Carlos,
I've just checked your code and it works: http://prntscr.com/emi3f6. Can you check if you're using an old version of the extension?
March 22, 2017 at 6:50 PM #5364thelemonlab
ParticipantHi Anh,
Have you tried in a Custom Post Type? I can see the one you send its working on the regular posts.
Let me know.
Thanks.
CarlosMarch 23, 2017 at 9:42 AM #5369Anh Tran
KeymasterIt still works: http://prntscr.com/encgwh
Here is my code: http://pastebin.com/gBpS4Fv5
Probably you need to change the priority in the
inithook for registering post type and taxonomy to something very low (like0), so post type and taxonomy are available when registering meta boxes.March 25, 2017 at 7:11 PM #5382thelemonlab
ParticipantHmmm..
Still not working for me...Getting now.
Fatal error: Uncaught Error: Call to undefined method RWMB_Field::call() in /Users/tien-weilin/Documents/Projects/Carlos/the-hotel-school/wp-content/themes/ths/lib/meta-box-term-meta/inc/field.php:38I am using the 1.0.5 version.
Thanks.
March 27, 2017 at 8:34 AM #5387Anh Tran
KeymasterWhich version of Meta Box plugin you're using? Are you bundle the Meta Box plugin inside your theme?
The bug shows that the function
RWMB_Field::call()is not available, while it's added in the Meta Box plugin quite long time ago.March 29, 2017 at 6:23 AM #5418thelemonlab
ParticipantThanks for the reply Anh.
here its the version:
/** * Plugin Name: MB Term Meta * Plugin URI: https://metabox.io/plugins/mb-term-meta/ * Description: Add custom fields (meta data) for terms. * Version: 1.0.5 * Author: Rilwis * Author URI: http://www.deluxeblogtips.com * License: GPL2+ * Text Domain: mb-term-meta * Domain Path: /lang/ */and here its my code to require the plugin.
// Define required variables require_once(__DIR__."/meta-box/meta-box.php"); require_once(__DIR__."/meta-box-columns/meta-box-columns.php"); require_once(__DIR__."/meta-box-include-exclude/meta-box-include-exclude.php"); require_once(__DIR__."/meta-box-tabs/meta-box-tabs.php"); require_once(__DIR__."/meta-box-group/meta-box-group.php"); require_once(__DIR__."/meta-box-term-meta/meta-box-term-meta.php"); require_once(__DIR__."/meta-box-conditional-logic/meta-box-conditional-logic.php");thanks again!
March 29, 2017 at 8:19 AM #5419Anh Tran
KeymasterI mean the version of the Meta Box plugin, not the extension. Can you check it? Is it 4.10.4?
-
AuthorPosts
- You must be logged in to reply to this topic.