Custom Fields
Re-Envisioned
Support MB Term Meta MB Term Meta not showing the fields

This topic contains 7 replies, has 2 voices, and was last updated by  Anh Tran 2 years ago.

  • Creator
    Topic
  • #5340
    Resolved
    thelemonlab
    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #5349

    Anh 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

    thelemonlab
    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 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

    thelemonlab
    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 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

    thelemonlab
    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 Tran
    Keymaster

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

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.