load_parts( array( 'header-bar' ) ); ?>
get( 'post_title' ) ); ?>
width=512 height=300 layout=responsive>
get( 'post_amp_content' ); // amphtml content; no kses ?>
ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
$args=array(
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'posts_per_page'=> 3,
'caller_get_posts'=>1
);
}
}//end of block for categories
//code block for tags
if($redux_builder_amp['ampforwp-single-select-type-of-related']==1) {
$ampforwp_tags = get_the_tags($post->ID);
if ($ampforwp_tags) {
$tag_ids = array();
foreach($ampforwp_tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
$args=array(
'tag__and' => $tag_ids,
'post__not_in' => array($post->ID),
'posts_per_page'=> 3,
'caller_get_posts'=>1
);
}
}//end of block for tags
} $my_query = new wp_query( $args );
if( $my_query->have_posts() ) { ?>
Related Posts
have_posts() ) {
$my_query->the_post();
$related_post_permalink = get_permalink();
$related_post_permalink = trailingslashit($related_post_permalink);
$related_post_permalink = $related_post_permalink . AMP_QUERY_VAR ;;
?>
-
$postID,
'status' => 'approve' //Change this to the type of comments to be displayed
));
if ( $comments ) { ?>
View Comments
10, //Allow comment pagination 'style' => 'li', 'type' => 'comment', 'max_depth' => 0, 'avatar_size' => 0, 'reverse_top_level' => false //Show the latest comments at the top of the list ), $comments); ?>