Home › Forums › Calendar Products › Events Calendar PRO › Setting mega_group visibility in the meta walker
- This topic has 9 replies, 4 voices, and was last updated 12 years, 4 months ago by
Leah.
-
AuthorPosts
-
October 9, 2013 at 5:53 am #70022
hansford77
ParticipantHi, 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.
October 9, 2013 at 6:35 am #70029Barry
MemberHi 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 🙂
October 9, 2013 at 7:06 am #70046hansford77
ParticipantSorry, rookie error! It’s here http://pastebin.com/8N6TgXns
October 9, 2013 at 7:08 am #70048hansford77
ParticipantOh, and please ignore my second question about the metadata spacing, I found the width setting 🙂
October 10, 2013 at 9:07 am #70309Barry
MemberSure 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.
October 11, 2013 at 1:00 am #70503hansford77
ParticipantFrom my point of view it’s working, so no hurry, thanks!
October 21, 2013 at 11:23 am #72005Barry
MemberSorry 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!
November 4, 2013 at 2:22 pm #74635Kelly
ParticipantHi, 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.
November 5, 2013 at 3:21 pm #74875Kelly
ParticipantHi, 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!
December 17, 2013 at 1:56 pm #82353Leah
MemberHey 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 -
AuthorPosts
- The topic ‘Setting mega_group visibility in the meta walker’ is closed to new replies.
