Custom Fields
Re-Envisioned
Support MB Relationships MB Relationships dropdowns now working

  • Creator
    Topic
  • #23001
    Resolved Cinza Web Design
    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #23010
    Long 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
    Cinza Web Design
    Participant

    Thanks!

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

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