> '. wp_kses(get_the_title(), mfn_allowed_html()) .''; } else { $h = mfn_opts_get('title-heading', 1); echo ''. wp_kses(get_the_title(), mfn_allowed_html()) .''; } } ?> '. esc_url($link) .''; } ?> '. esc_html($term->name) .''; } } ?> '. wp_kses($caption, mfn_allowed_html('caption')) .''; } } ?> ID); $mfn_builder->show(); ?> '', 'after' => '', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'number' )); ?> $aCategories, 'ignore_sticky_posts' => true, 'no_found_rows' => true, 'post__not_in' => array( get_the_ID() ), 'posts_per_page' => $related_count, 'post_status' => 'publish', ); $query_related_posts = new WP_Query($args); if ($query_related_posts->have_posts()) { echo ''; echo ''. esc_html($translate['related']) .''; echo ''; while ($query_related_posts->have_posts()) { $query_related_posts->the_post(); $related_class = ''; if (! mfn_post_thumbnail(get_the_ID())) { $related_class = 'no-img'; } $post_format = mfn_post_thumbnail_type(get_the_ID()); if (mfn_opts_get('blog-related-images')) { $post_format = 'image'; } // accessibility if ( mfn_opts_get('repetitive-links') ) { $button_text = mfn_repetitive_link( get_permalink(), $translate['readmore'] ); } echo ''; echo ''; if (get_post_format() == 'quote') { echo ''; echo ''; the_title(); echo ''; echo ''; } else { echo ''; echo ''; echo ''; echo mfn_post_thumbnail(get_the_ID(), 'related', false, $post_format); echo ''; if( $post_thumbnail_id = get_post_thumbnail_id() ){ if ( $caption = wp_get_attachment_caption($post_thumbnail_id) ) { echo ''. wp_kses($caption, mfn_allowed_html('caption')) .''; } } echo ''; echo ''; } echo ''. esc_html(get_the_date()) .''; echo ''; if (get_post_format() != 'quote') { echo ''. wp_kses(get_the_title(), mfn_allowed_html()) .''; } echo ''; echo ''. $button_text .''; echo ''; echo ''; echo ''; } echo ''; echo ''; } wp_reset_postdata(); } ?>