|
Server IP : 10.1.204.1 / Your IP : 216.73.216.250 Web Server : Apache/2.4.66 (Debian) System : Linux madang-bd97cb958-x26ms 6.8.0-78-generic #78-Ubuntu SMP PREEMPT_DYNAMIC Tue Aug 12 11:28:09 UTC 2025 aarch64 User : root ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF Directory (0755) : /var/www/html/wp-content/themes/madang/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* The template for displaying Tag pages
*
* Used to display archive-type pages for posts in a tag.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Madang
*/
get_header(); ?>
<div id="primary" class="site-content content-wrapper topofset">
<div id="main" class="container content_search" >
<header class="page-header">
<h1 class="page-title text-light"><?php $tag_slug = get_query_var('tag'); printf( esc_html__( 'Search Results for tag: %s', 'madang' ), '<span>' . $tag_slug . '</span>' ); ?></h1>
</header><!-- .page-header -->
<?php
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$args = array(
'post_status' => 'publish',
'post_type' => 'post',
'posts_per_page' => '10',
'tag' => $tag_slug,
'paged' => $paged
);
$tag_query = new WP_Query( $args );
while ( $tag_query->have_posts() ) : $tag_query->the_post();
get_template_part( 'template-parts/content', 'tag' );
endwhile;
wp_reset_postdata();
?>
<?php madang_pagination_blog(); ?>
</div><!-- #main -->
</div><!-- #primary -->
<?php get_footer();