robot76
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Generate a list from older to upcoming eventsI put the suggested code in functions.php
/**
* Changes Past Event Reverse Chronological Order
*
* @param array $template_vars An array of variables used to display the current view.
*
* @return array Same as above.
*/
function tribe_past_reverse_chronological_v2( $template_vars ) {
if ( ! empty( $template_vars['is_past'] ) ) {
$template_vars['events'] = array_reverse( $template_vars['events'] );
}
return $template_vars;
}
// Change List View to Past Event Reverse Chronological Order
add_filter( 'tribe_events_views_v2_view_list_template_vars', 'tribe_past_reverse_chronological_v2', 100 );
// Change Photo View to Past Event Reverse Chronological Order
add_filter( 'tribe_events_views_v2_view_photo_template_vars', 'tribe_past_reverse_chronological_v2', 100 );but nothing happens:
https://www.francescomangiapane.it/appuntamenti/?tribe-bar-date=2025-04-21
Where am I doing wrong?
Best
Francesco
Forum: Plugins
In reply to: [The Events Calendar] Generate a list from older to upcoming eventsDear Darian, thanks for your kind answer. However I am willing to order the list from newer to older events, thing which appear at the level of my skills impossibile to achieve. Is there a way to get this? Would you mind taking into consideration such feature for the upcoming versions of the plugin, as it seems a very logical and natural use that many users could make of it?
Forum: Plugins
In reply to: [WooCommerce] Remove the word “product” from attributes’ breadcrumbswith the upgrade of woocommerce the word “product” came back on my breadcrumbs, what’s wrong with my snippet?
Forum: Plugins
In reply to: [WooCommerce] Remove the word “product” from attributes’ breadcrumbsI solved the issue with the following code to be placed in functions.php:
function custom_modify_attribute_labels($labels) {
if (is_array($labels)) {
// Sostituisci singular_name con name
$labels[‘singular_name’] = $labels[‘name’];
}
return $labels;
}add_filter(‘woocommerce_attribute_labels’, ‘custom_modify_attribute_labels’);
I how this will be helpful for the many who experience such an issue.
Thanks
Forum: Plugins
In reply to: [WooCommerce] “Product” prepending to attribute name nowThe problem comes from line 287 of the file includes/class-wc-breadcrumbs.php
Is there any chance to change this
from
$this->add_crumb( $taxonomy->labels->name );
to
$this->add_crumb( $taxonomy->labels->singular_name );in a child theme funciotn file?
Forum: Plugins
In reply to: [WooCommerce] Grouped product display order after upgradeSame problem here. My shop is a bookshop and the grouped products are made by the chapters of the book listed in a spcific order: now it’s a mess!
Please help!