Displaying subcategories and then posts in taxonomy template

Please try this <?php $term = get_queried_object(); $term_id = $term->term_id; $taxonomy_name = $term->taxonomy; $termchildren = get_term_children( $term_id, $taxonomy_name );?> <?php foreach ( $termchildren as $child ) { $term = get_term_by( ‘id’, $child, $taxonomy_name ); ?> <li> <?php echo $term->name; ?> <?php echo $term->description; ?> </li> <?php } if ( have_posts() ) : /* Start the … Read more

Show latest used taxonomy in homepage

You can do it like: $args = array( ‘post_type’ => ‘post_type_name’, // or use default if you use standard ‘numberposts’ => 3, // or you can use 1 if you need only from last post. ‘orderby’ => ‘date’, //by dates to get lastest ‘order’ => ‘DESC’, ); $posts = get_posts($args); $recent_taxonomies = []; foreach ($posts … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)