add header image to woocomerce shop page
//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']);
}
}
Also in PHP:
- empty laravel cache
- check lenght phph
- date show year first php
- create random password with refresh in php
- check array key e\
- Check if something in array php
- Class 'App\Http\Controllers\File' not found
- clear session laravel
- echo console.log
- Class 'App\Http\Controllers\Auth' not found
- class name laravel
- Example wp-config.php for Debugging
- array reverse sequence pp
- array no of duplictae items php
- $this
- exceptions in php
- debian install apache php
- character count in php
- date function plus 1 day php
- carbon add minutes
- find largest element of an array in php
- array key not exists php
- ErrorException Undefined variable: udata (View: D:\Laravel\blog\resources\views\admin\all_category.blade.php) http://127.0.0.1:8000/all-category
- date () u php