Hi,
I have set up some content in the widgets section for the frontpage section of our page
But unfortunately it does not get displayed.
Can you help me with this please?
Thanks and best regards,
Patrick
Hi,
I have set up some content in the widgets section for the frontpage section of our page
But unfortunately it does not get displayed.
Can you help me with this please?
Thanks and best regards,
Patrick
Hey there,
I hope you are well today and thank you for your question.
Kindly answer the following questions:
Kindly execute the following troubleshooting steps?
Best Regards,
Support.
Hello,
I am having the same problem too
and “Recently Viewed Products” widget disappeared
all happened suddenlly the moment I added number 6th. category ! this is what I noticed
I am using the latest wp and tyche, and no plugins except those recommended by theme
Hello there,
I hope you are doing well today.
When it come to this issue it could be one of the following issue:
Best Regards,
Support
I received the same issue with the Tyche + child theme. Solution is fix core file (yes, it’s bad, but I don’t want to mess with recreating widget in the child theme).
File is /tyche/inc/libraries/widgets/widget-tyche-products/class-widget-tyche-products.php, line 159:
You have to replace
<option value="<?php echo esc_attr( $category->name ); ?>" <?php selected( esc_attr( $category->name ), $instance['cats'] ); ?>><?php echo esc_html( $category->name ); ?></option>
with
<option value="<?php echo esc_attr( $category->slug ); ?>" <?php selected( esc_attr( $category->name ), $instance['cats'] ); ?>><?php echo esc_html( $category->name ); ?></option>
After that WP_Query
in Tyche_Helper::get_products
will return non-empty posts array:
$atts = array(
'posts_per_page' => isset( $args['posts_per_page'] ) ? $args['posts_per_page'] : 10,
'post_type' => 'product',
);
if ( '' !== $args['cats'] ) {
$atts['product_cat'] = $args['cats'];
}
$posts = new WP_Query( $atts );
Hello @okto,
This is a creative solution but because it was done by editing the core files as you know it can case issues in the future especially when WordPress updates.
Best Regards,
Support