Viewing 3 replies - 16 through 18 (of 18 total)
  • Well I already posted a way to do what he would want to do, that is helping the next person who comes along…

    So since this is a community forum… how does one provide one on one support if they have no way of contacting one on one. Do you really think having a pm option would take away from the forum haha thats funny.

    hy gyz plz help me.. how show woocommerce shop page in our custome main page

    UPDATE:

    //Check is_shop - Shop base page
            // if True then Show Category Header Content of The first Product in Shop base Page 
    
    if (is_shop()) {
            $args = array('taxonomy' => 'product_cat');
    		$product_categories = get_categories( $args  );
            $term_id = $product_categories[0]->term_id;
    		$content = get_term_meta($term_id, 'cat_meta');
            if(isset($content[0]['cat_header'])){
    			echo do_shortcode($content[0]['cat_header']);
    		}
    }
    ?>

    See my example kho hàng hóa

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘custom static image on shop page?’ is closed to new replies.