How to display post meta bellow every posts
Getting and displaying the categories within your posts loop can be done for example like this, $categories = get_the_category(); if ( $categories ) { $cat_links=””; foreach ( $categories as $category ) { $cat_links .= sprintf( ‘<a href=”https://wordpress.stackexchange.com/questions/346001/%s”>%s</a>’, esc_url( get_category_link( $category->term_id ) ), esc_html( $category->name ) ); } printf( ‘<div class=”categories”><span class=”title”>%s</span>%s</div>’, esc_html__( ‘Categories:’, ‘text-domain’ ), … Read more