Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <?php
  2. $parentid = get_queried_object_id();
  3. $args = array(
  4. 'parent' => 68,
  5. 'hierarchical' => 1,
  6. 'show_option_none' => '',
  7. 'hide_empty' => 0,
  8. );
  9. $terms = get_terms( 'product_cat', $args );
  10.  
  11. if ( $terms ) {
  12. foreach ( $terms as $term ) {
  13. var_dump($term);
  14. echo '<div class="row expand-blocks"><div class="col-md-3">
  15. <h3 class="category_name">'.$term->name.'</h3>';
  16. woocommerce_subcategory_thumbnail( $term );
  17. echo'</div> <div class="col-md-9 category_description"><p class="readmoretoggle">'.$term->description.'</p> <div class="row category_full_description"><div class="">';
  18. echo '<div class="col-md-6"><div class="nutrition_value ">';
  19.  
  20. //need to show below
  21. the_field('nutrition_value_per_one_cup', '107');
  22.  
  23. echo '</div></div> <div class="col-md-6"><div class="useful_value ">';
  24.  
  25. //need to show below
  26. the_field('useful_for_body_parts');
  27.  
  28. echo '</div> </div>';
  29.  
  30. }
  31.  
  32.  
  33. }
  34.  
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement