“They could be made to accept the most flagrant violations of reality, because they never fully grasped the enormity of what was demanded of them, and were not sufficiently interested in public events to notice what was happening.”
George Orwell, 1984
/**
Gets tags used on the page
*/
$postID = get_the_ID();
$theTags = wp_get_post_tags($postID);
if ( count($theTags) > 0 ) {
$primary = $theTags[0];
$firstTag = $primary->term_id;
//echo $firstTag;
//echo $primary->term_id;
$output = $primary->name;
//Get all pages with primarry(first) term.
$args = array(
'post_type' => 'page',
'tag__in' => $firstTag,
'posts_per_page' => -1,
);
$query = new WP_Query( $args );
$count = 0;
if ( is_page() ) {
if ( have_posts() ) {
?>