Custom Fields
Re-Envisioned
Support MB Relationships MetaBox Relationships not showing in menu

  • Creator
    Topic
  • #32620
    Resolved Michele Schembri
    Participant

    I have both Metabox, MB Relationships, and MB Blocks all installed through composer:

       "wpmetabox/meta-box": "^5.5",
        "wpmetabox/mb-relationships": "^1.10",
        "meta-box/mb-blocks": "master"
    

    All the plugins are installed and activated successfully, however whenever I go to MetaBox in the menu, I only have 2 options, Dashboard and Licence. The documentation states that the Relationships tab should be under the main menu.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #32651
    Long Nguyen
    Moderator

    Hi,

    The extension MB Relationship and MB Blocks does not have UI. Please read more here to use the code https://docs.metabox.io/extensions/mb-relationships/#using-code

    You can also install the extension MB Builder to use UI to create custom fields, settings pages, or relationships.
    https://docs.metabox.io/extensions/meta-box-builder/

    #32663
    Michele Schembri
    Participant

    Many thanks for this! I was able to create bi-directional relationships using only the code. The relationship section however I have the following error being thrown:

    Warning: Parameter 2 to RWMB_Post_Field::search_by_title() expected to be a reference, value given in C:\path\class-wp-hook.php on line 303
    Call Stack
    #  Time    Memory  Function    Location
    1   0.0001  413488  {main}( )   ...\post.php:0
    2   0.2734  13921328    require( 'C:\path\wp-admin\edit-form-advanced.php' ) ...\post.php:206
    3   0.3613  14678792    do_meta_boxes( )    ...\edit-form-advanced.php:681
    4   0.3681  14692504    RW_Meta_Box->show( ) ...\template.php:1395
    5   0.3691  14694200    RWMB_Field::call( ) ...\meta-box.php:259
    6   0.3691  14694640    RWMB_Object_Choice_Field::show( )   ...\field.php:580
    7   0.3696  14695736    RWMB_Field::call( ) ...\object-choice.php:28
    8   0.3696  14696176    RWMB_Post_Field::query( )   ...\field.php:580
    9   0.3697  14699296    WP_Query->__construct( ) ...\post.php:155
    10  0.3697  14699296    WP_Query->query( )   ...\class-wp-query.php:3576
    11  0.3697  14699296    WP_Query->get_posts( )   ...\class-wp-query.php:3465
    12  0.3699  14703168    apply_filters_ref_array( )  ...\class-wp-query.php:2131
    13  0.3699  14703168    WP_Hook->apply_filters( )

    Any ideas what could be causing this, please?

    #32673
    Long Nguyen
    Moderator

    Hi,

    Please update Meta Box to the new version 5.5.1 to resolve this issue.

    #32779
    Michele Schembri
    Participant

    Hi, indeed the issues were resolved when I updated to 5.5.1. Thank you!

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