Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="container interior-wrapper">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <h1 class="pb-4"><?php the_title(); ?></h1>
- <h3 class="text-center"><?php the_date(); ?></h3>
- <figure>
- <?php the_post_thumbnail( 'full', array( 'class' => 'mx-auto d-block img-fluid shadow' ) ); ?>
- </figure>
- <main>
- <?php the_content(); ?>
- </main>
- <aside class="pt-2 pb-3">
- <?php the_tags(); ?>
- </aside>
- <?php endwhile; else : ?>
- <p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
- <?php endif; ?>
- </div>
- <?php get_footer(); ?>
- <?php get_header(); ?>
- <div class="container interior-wrapper pt-3 pb-3">
- <div class="alert alert-success mt-3">
- <h4 class="text-uppercase text-center">
- <?php printf( __( 'Content Tagged With: %s', 'my_theme' ), '<span>' . get_search_query() . '</span>' ); ?>
- <em>“<?php single_tag_title(); ?>”</em>
- </h4>
- </div>
- <div class="row mt-5">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <div class="col-md-12 mb-4">
- <main>
- <h1>
- <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
- <?php the_title(); ?>
- </a>
- </h1>
- <?php the_excerpt(); ?>
- <hr class="shadow news-pg-hr" />
- </main>
- </div>
- <?php endwhile; else : ?>
- <p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
- <?php endif; ?>
- <div class="col">
- <?php //echo my_theme_pagination(); ?>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement