|
|
Repetable group order
Started by: davideE-4
in: Toolset Professional Support
Quick solution available
|
|
2 |
7 |
3 years, 7 months ago
davideE-4
|
|
|
Display Custom Termfield for WooCommerce Category Pages
Started by: christophS-4
in: Toolset Professional Support
Quick solution available
Problem:
The issue here is that the user wanted to use their custom field value that's on the taxonomy as their Product Archive Title.
Solution:
This can be done by using the Hook below.
add_filter( 'woocommerce_page_title', 'customize_woocommerce_page_title', 10, 1 );
function customize_woocommerce_page_title( $page_title) {
$new_title = types_render_termeta( "my-field", array() );
// Custom title for the product category
if ( is_product_category() && !empty($new_title) ) {
$page_title = types_render_termeta( "my-field", array() );
}
return $page_title;
}
replace my-field with the slug of your custom field.
Add the code to your custom code options at Toolset->Settings -> Custom Code and activate it.
|
|
2 |
14 |
3 years, 7 months ago
christophS-4
|