'; } $related_posts_args = array( 'post__not_in' => array( get_the_ID() ) ); $current_post_tags = get_the_tags(get_the_ID()); if( $current_post_tags ) : foreach( $current_post_tags as $current_post_tag ) : $query_tags[] = $current_post_tag->term_id; endforeach; $related_posts_args['tag__in'] = $query_tags; endif; $related_posts = new WP_Query( $related_posts_args ); if( $related_posts->have_posts() ) : echo ' '; endif; ?> 'nav', 'show_on_front' => false, 'network' => false, 'show_title' => true, 'show_browse' => true, 'labels' => array( 'browse' => esc_html__( 'Browse : ', 'armonia' ), 'home' => esc_html__( 'Home', 'armonia' ), 'error_404' => esc_html__( '404 Not Found', 'armonia' ), 'search' => esc_html__( 'Search results for: ', 'armonia' ) . ' %s' ) ); echo '
'; breadcrumb_trail( $theme_args ); echo '
'; } add_action( 'armonia_before_content_hook', 'armonia_breadcrumb_trail', 10 ); } if( ! function_exists( 'armonia_pagination_fnc' ) ) : /** * Renders pagination * */ function armonia_pagination_fnc() { if( is_null( paginate_links() ) ) { return; } echo ''; } add_action( 'armonia_pagination_link_hook', 'armonia_pagination_fnc' ); endif;