No technical skills needed?
-
Hi there,
I’ve been trying for ages to make this plugin display the images with the categories :/ It says no technical skills needed but …. still.
I’d like to generate the image for each parent category in my function.php but seems the code provided is not given the url …. and btw if I copy/paste it it just break the function.
Could you help me plz?
What do I have to change in the following code:
$args = array( 'number' => $number, 'orderby' => 'slug', 'order' => 'ASC', 'hide_empty' => $hide_empty, 'include' => $ids ); $product_categories = get_terms( 'categories_pages', $args ); $count = count($product_categories); if ( $count > 0 ){ foreach ( $product_categories as $product_category ) { $thumbnail_id = get_woocommerce_term_meta( $product_category->term_id, 'thumbnail_id', true ); $thumbnail_url = wp_get_attachment_thumb_url( $thumbnail_id ); $meta_image = get_wp_term_image( $term_id ); echo '<h2>
' . $product_category->name . '</h2>'; echo $product_category->description; } }
Thank you for helping
- The topic ‘No technical skills needed?’ is closed to new replies.