Forum Replies Created
-
AuthorPosts
-
leviticus
ParticipantOk. Fresh set of eyes found the problem. It was a weird styling issue.
Sorry to waste your time!
leviticus
ParticipantI’ve also noticed that my custom fields are also not showing up.
<div class="grades"> <?php ob_start(); tribe_get_template_part( 'pro/modules/meta/additional-fields', null, array( 'fields' => tribe_get_custom_fields(), ) ); $html = ob_get_clean();?> <strong><?php echo $html; ?></strong> </div>leviticus
ParticipantI’m not using Event Tickets or Eventbrite Tickets. Would my issue still be related to those plugins even if they aren’t installed? If not, any other thoughts as to why the cost isn’t pulling in?
December 28, 2016 at 8:29 am in reply to: Exclude category from List/Photo view messes up List Widget query #1211035leviticus
ParticipantI think that worked! Thank you for your help.
December 22, 2016 at 1:29 pm in reply to: Exclude category from List/Photo view messes up List Widget query #1209783leviticus
ParticipantThis reply is private.
December 22, 2016 at 1:27 pm in reply to: Exclude category from List/Photo view messes up List Widget query #1209781leviticus
ParticipantHmm… I tried that line in couple different spots in the function, but it is not working on the List Widget on a single page.
Did you mean like this?
add_action( 'pre_get_posts', 'tribe_exclude_events_category_month_list' ); function tribe_exclude_events_category_month_list( $query ) { if ( is_single() && tribe_is_event() ) return $wp_query; if ( isset( $query->query_vars['eventDisplay'] ) && ! is_singular( 'tribe_events' ) ) { if ( $query->query_vars['eventDisplay'] == 'list' && ! is_tax( Tribe__Events__Main::TAXONOMY ) || $query->query_vars['eventDisplay'] == 'photo' && $query->query_vars['post_type'] == Tribe__Events__Main::POSTTYPE && ! is_tax( Tribe__Events__Main::TAXONOMY ) && empty( $query->query_vars['suppress_filters'] ) ) { $query->set( 'tax_query', array( array( 'taxonomy' => Tribe__Events__Main::TAXONOMY, 'field' => 'slug', 'terms' => array( 'private', 'office' ), 'operator' => 'NOT IN' ) ) ); } } return $query; }leviticus
ParticipantI think that did the trick. Thanks for you help!
leviticus
ParticipantThis reply is private.
-
This reply was modified 9 years, 7 months ago by
leviticus.
leviticus
ParticipantAfter getting nowhere inspecting the generated code, I scrapped everything in the template files and started fresh. Not really sure where the error was but that seemed to fix it.
leviticus
ParticipantCorrect, I am not seeing that option on my display options page.
leviticus
ParticipantThanks Barry. The functions you provided seem to have added more variety in the generated related events.
If I wanted to tweak the tribe_related_posts_args filter or tribe_get_related_posts hook, where would I find/edit/add that?
leviticus
ParticipantThanks for checking in with me Casey. It’s been crazy here! I will take a look at it on Monday and get back you. So if you could keep this ticket open a little while longer that would be appreciated.
leviticus
ParticipantThank you! That did the trick. 🙂
leviticus
ParticipantThanks Neil and smallmammoth for the new information. I too would really appreciate a tutorial on how to non-destructively override/modify plugin functions such as ‘tribe_events_event_schedule_details’. I think that would provide the best plugin-wide solution. Let me know if that turns into a new thread.
For the single event date modifications, I think I will just make a new template for that instance.
leviticus
ParticipantI did notice something that may indicate that it is the Events plugin code causing the “2013” to be removed from the date line. As you can see from http://www.formannd.com/events/upcoming/?action=tribe_list&tribe_paged=2 the “2014” does appear on events happening next year but “2013” doesn’t appear on events happening this year. Is there a way to turn 2013 on in the date or will I have to create all new template files?
-
This reply was modified 9 years, 7 months ago by
-
AuthorPosts
