How to get post taxonomy url and name in wp_query

Please try this <div class=”post-category”> <?php // @ https://developer.wordpress.org/reference/functions/get_the_terms/ $terms = get_the_terms( get_the_ID(), ‘video-category’ ); if ( $terms && ! is_wp_error( $terms ) ){ $term_links = array(); foreach ( $terms as $term ) { $term_links[] = ‘<a href=”‘ . esc_attr( get_term_link( $term->slug, $taxonomy ) ) . ‘”>’ . __( $term->name ) . ‘</a>’; } $all_terms … Read more

loop hierarchical custom post type, child pages only

<?php // query only child pages of custom post type $customQuery = array( ‘post_type’ => ‘CUSTOM_POST_TYPE’, ‘posts_per_page’ => ’10’, ‘post_parent__not_in’ => array(0), ); $custom = new WP_Query( $customQuery ); if ($custom->have_posts()) : while ( $custom->have_posts()) : $custom->the_post(); ?> DO STUFF <?php endwhile; endif; wp_reset_query(); ?>

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