Setting mega_group visibility in the meta walker

Home Forums Calendar Products Events Calendar PRO Setting mega_group visibility in the meta walker

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #70022
    hansford77
    Participant

    Hi, I have been having problems with the meta walker and have made it work with a tweak to your code. Don’t know if it’s me that’s wrong or you!
    Here’s my code that doesn’t work:

    add_action( ‘wp_head’, ‘custom_event_meta’ );
    function custom_event_meta(){
    tribe_set_the_meta_visibility(‘tribe_event_organizer’, FALSE, ‘meta_group’);
    }

    There’s a bit of code in tribe_get_meta_group that checks for the visibility of the meta group:
    }
    // internal check for hiding items in the meta
    if( $is_the_meta && ! $meta_group[‘show_on_meta’] ){
    return false;
    }

    By changing the line to if( ! $is_the_meta && ! $meta_group[‘show_on_meta’] ) I can make it work. Can you advise on this please? Thanks.

    In addition, is there a way to space the metadata equally now I only have two columns? I just have blank space at the right where the Organizer group used to be.

    #70029
    Barry
    Member

    Hi hansford77,

    The forum isn’t a great place to share code as it’s prone to dropping bits and pieces where various symbols are used. Just to be certain that what I’m seeing is accurate can I ask you to share it via Pastebin or Gist and drop the link in here?

    Thanks – and sorry for the inconvenience 🙂

    #70046
    hansford77
    Participant

    Sorry, rookie error! It’s here http://pastebin.com/8N6TgXns

    #70048
    hansford77
    Participant

    Oh, and please ignore my second question about the metadata spacing, I found the width setting 🙂

    #70309
    Barry
    Member

    Sure thing. Bear with me a little longer – the meta walker is a new addition to the plugin and I just want to be sure we’ve got a firm handle on it before I give you a response.

    #70503
    hansford77
    Participant

    From my point of view it’s working, so no hurry, thanks!

    #72005
    Barry
    Member

    Sorry for the delay hansford77 – this unfortunately slipped off the radar and I can only apologize for the delay.

    I believe you have found a bug here and your correction seems sound (plus, it looks like, one of the team corrected something similar in related function tribe_get_meta()). We’ll need to do a few further checks and this change realistically won’t make the very next maintenance release, but hopefully we’ll slot the fix in shortly thereafter.

    Out of curiosity, after making that change in the core code yourself did you find your snippet worked? I’m asking only because it seems to me like wp_head may be too early for that code to be successful (though if it works, it works!).

    Thanks!

    #74635
    Kelly
    Participant

    Hi, hansford77. Since it’s been quite a while now, I’m going to close this thread. Please start a fresh one if you’d like to pursue this further.

    #74875
    Kelly
    Participant

    Hi, hansford77. This is just a note to let you know that we didn’t get a chance to look at your issue for our maintenance release this time around.

    We do plan to find a way to help you out with this. We look forward to addressing this as soon as we’ve got bandwidth/resources to allow it.

    Thanks for being part of the TEC community!

    #82353
    Leah
    Member

    Hey there,

    I just wanted to let you know that a fix for this issue is included in our upcoming version 3.3. Keep an eye out on your WordPress Plugins page for an update. Thanks for your patience while we worked on this!

    Cheers,
    Leah

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Setting mega_group visibility in the meta walker’ is closed to new replies.