Forum Replies Created
-
AuthorPosts
-
digitalfusionParticipant
Actually, the one I posted above works in all cases, so for now, I suppose I’ll just use that one. Thanks for the help!
digitalfusionParticipantThis reply is private.
digitalfusionParticipantI actually have another piece of code in there that seems to be doing the trick in both the widget and the shop pages. If I used the one you provided, it works for the widget, but the ticket category still shows up on the shop page. I can switch them out again if you’d like to see.
This is the code I round elsewhere that seems to be working:
add_filter( ‘get_terms’, ‘get_subcategory_terms’, 10, 3 );
function get_subcategory_terms( $terms, $taxonomies, $args ) {
$new_terms = array();// if a product category and on the shop page
if ( in_array( ‘product_cat’, $taxonomies ) && ! is_admin()) {
foreach ( $terms as $key => $term ) {
if ( ! in_array( $term->slug, array( ‘ticket’ ) ) ) {
$new_terms[] = $term;
}
}$terms = $new_terms;
}return $terms;
}digitalfusionParticipantHmm. That seems to work for the Product Categories widget, but not on the Shop page itself.
digitalfusionParticipantNope. I don’t see an “Event Cost” section. There’s nothing after the “Event Organizer Details” section.
I am using WooTickets. Does that disable that section by any chance?
digitalfusionParticipantHmm. I’m familiar with template overrides, but I don’t see an Event Cost field anywhere. Is that available in the standard version of the The Events Calendar? If so, can you point me to where it’s documented? Thanks!
-
AuthorPosts