Support Forum ยป User Profile

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: โœ…WYSIWYG Visual editor not working #41784
    papertowerpapertower
    Participant

    Just ran into this as well. Blocking me from being able to proceed. ๐Ÿ˜ฌ

    in reply to: Some relationship titles missing from select query #32944
    papertowerpapertower
    Participant

    So that means all 250 doctors would show up in a standard select dropdown? Sounds like a terrible UX. Is there a way to load all of them, or some better experience for the select_advanced?

    in reply to: Some relationship titles missing from select query #32917
    papertowerpapertower
    Participant

    Oh, and here's the relationship:

    
        MB_Relationships_API::register([
            'id' => get_relation_id(DOCTOR_TYPE, LOCATION_TYPE),
            'from' => [
                'object_type' => 'post',
                'post_type' => DOCTOR_TYPE,
                'meta_box' => [
                    'title' => 'Available at locations',
                ],
                'admin_column' => true,
            ],
            'to' => [
                'object_type' => 'post',
                'post_type' => LOCATION_TYPE,
                'meta_box' => [
                    'title' => 'Doctors at Location',
                ],
            ],
        ]);
    
    in reply to: โœ…Trouble with relationship query in pre_get_posts #32729
    papertowerpapertower
    Participant

    After further digging, it looks like the Meta Box Relationships plugin uses the parse_query action which happens before pre_get_posts. That explains why it wasn't working.

    I switched the action I was using from pre_get_posts to parse_query and that resolved the issue.

    It may be worth including in your docs that parse_query or earlier must be used in order to modify a query into supporting relationships.

Viewing 4 posts - 1 through 4 (of 4 total)