Paste this code along side the code given by you
I have not tested the code but it should do the trick…
where you used this [blog1 items=1 cat=op-ed]
replace this with this [blogtag items=1 tag=china]
<?php
$queried_object = get_queried_object();
$term = $queried_object->name;
add_shortcode("blogtag", "blog_tag");
function blog_tag($atts, $content) {
extract(shortcode_atts(array(
"items" => 4,
"tag" => null,
"id" => null,
"nav" => false,
"order" => "desc",
"orderby" => "DATE",
"events" => null
), $atts));
$order = strtoupper($order);
$items_count = 0;
$items_src = null;
if ($id == null) {
$query = array(
'orderby' => $orderby,
'order' => $order,
'posts_per_page' => $items,
'tag' => $tag
);
$wp_query_event = new WP_Query($query);
}
$items_src .= '
<div id="short-one" class="fixed">';
while ($wp_query_event->have_posts()):
$wp_query_event->the_post();
global $post;
$image_id = get_post_thumbnail_id();
$cover = wp_get_attachment_image_src($image_id, 'short-one');
$no_cover = get_template_directory_uri();
$tag = get_the_tags();
$vimeo = get_post_meta($post->ID, "post_vimeo", true);
$youtube = get_post_meta($post->ID, "post_youtube", true);
$author = get_the_author_meta('ID');
$items_src .= '
<div class="short-one-art">
<div class="short-one-cover">';
if ($vimeo or $youtube) {
$items_src .= '<a href="' . get_permalink() . '"><div class="short-one-video"></div></a>';
}
$items_src .= '
<a href="' . get_permalink() . '">';
if ($image_id) {
$items_src .= '<img src="' . $cover[0] . '" alt="' . get_the_title() . '" />';
} else {
$items_src .= '<img src="' . $no_cover . '/images/no-cover/short-one.png" alt="no-cover" />';
}
$items_src .= '</a>
<div class="comment-bubble">
<span class="comment-count">' . get_comments_number() . '</span>
</div>';
if ($tag != null) {
} else {
$items_src .= '
<div class="slider-left-cat">' . $tag[0]->name . '</div>';
}
$items_src .= '</div>
<h2><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>
<div class="short-one-info">' . get_the_date('F jS, Y') . ' | by <a href="' . get_author_posts_url($author) . '">' . get_the_author() . '</a> | <a href="'.get_tag_link($tag[0]->term_id).'">'. $tag[0]->name .'</a></div>
' . get_excerpt(230) . '
</div><!-- end .short-one-art -->';
endwhile;
wp_reset_query();
$items_src .= '
</div><!-- end #short-one -->
';
return $items_src;
}