MB Relationships dropdowns now working

Support MB Relationships MB Relationships dropdowns now workingResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23001
    CinzaCinza
    Participant

    Hi, for some reason the dropdowns stopped working. I now see a regular dropdown (https://rzfg.co/kIPFUS) instead of the one with the search field. Can you help me with that?

    Also, can I have connections with posts that are drafts or private published?

    #23010
    Long NguyenLong Nguyen
    Moderator

    Hi Cinza,

    It looks like the select field, not select_advanced (default). Please deactivate all plugins except Meta Box, MB extensions and switch to the default theme of WordPress Twenty Twenty to check the issue again. If it does not solve, I recommend checking your code, it might use the field type select.

    You can also get connections with posts that have other statuses (draft, pending, private...) by using the setting query_args.

    The code would be:

    'from' => 'CPT',
    'to' => array(
        'post_type'    => 'CPT',
        'field' => array(
            'field_type' => 'select' //Check the field type here
        ),
        'query_args' => array(
            'post_status' => array( 'pending', 'draft', 'private' )
        ),
    ),

    See more in the documentation:
    https://developer.wordpress.org/reference/classes/wp_query/#status-parameters
    https://docs.metabox.io/extensions/mb-relationships/#syntax

    #23054
    CinzaCinza
    Participant

    Thanks!

    The post_status was what I needed. And the dropdown issues was a plugin conflict.

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