Click a tag to achieve WordPress tag cloud, it demonstrates all articles under this label
Click achieve WordPress tag cloud (Tag Cloud) in a label, it demonstrates all articles under this label.
code show as below:
<?php
get_header();
?>
<section id=”primary” class=”content-area”>
<main id=”main” class=”site-main”>
<?php
if (have_posts()): ?>
<?php
$tag = get_query_var(‘tag’, ‘淘宝’);
$args = array(
‘tag’ => $tag,
‘showposts’ => 300,
‘caller_get_posts’ => 1
);
And there are, for details see text