MB Term Meta not showing the fields

Support MB Term Meta MB Term Meta not showing the fieldsResolved

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #5340
    thelemonlabthelemonlab
    Participant

    Hi 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!
    Carlos

    #5349
    Anh TranAnh Tran
    Keymaster

    Hi 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?

    #5364
    thelemonlabthelemonlab
    Participant

    Hi 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.
    Carlos

    #5369
    Anh TranAnh Tran
    Keymaster

    It still works: http://prntscr.com/encgwh

    Here is my code: http://pastebin.com/gBpS4Fv5

    Probably you need to change the priority in the init hook for registering post type and taxonomy to something very low (like 0), so post type and taxonomy are available when registering meta boxes.

    #5382
    thelemonlabthelemonlab
    Participant

    Hmmm..
    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:38

    I am using the 1.0.5 version.

    Thanks.

    #5387
    Anh TranAnh Tran
    Keymaster

    Which 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.

    #5418
    thelemonlabthelemonlab
    Participant

    Thanks 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!

    #5419
    Anh TranAnh Tran
    Keymaster

    I mean the version of the Meta Box plugin, not the extension. Can you check it? Is it 4.10.4?

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.