1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php get_header();?>
- <div class="container pt-5">
- <div class="row gx-5">
- <section id="primary" class="col-sm-12 col-lg-6">
- <div id="main" class="site-main" role="main">
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php the_content(); ?>
- </article>
- <?php endwhile; ?>
- </div>
- </section>
- <section id="secondary" class="col-sm-12 col-lg-6 pt-2">
- <div class="row">
- <?php $post = get_page_by_title('B Front Page ( 2nd Column )'); $output = apply_filters( 'the_content', $post->post_content ); echo $output; ?>
- </div>
- </section>
- </div>
- <div class="row gx-5 mt-4">
- <hr/>
- <header class="entry-header">
- <h2><a href="<?php echo get_site_url();?>/news">News</a></h2>
- </header>
- <?php $mostrecentposts = new WP_Query();
- $mostrecentposts = get_posts('numberposts=2');
- foreach ($mostrecentposts as $post) : setup_postdata($post); ?>
- <div class="col-sm-12 col-lg-6">
- <header class="entry-header">
- <h3 class="front-page m-0"><?php the_title( '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a>' );?></h3>
- </header>
- <div class="front-page-entry-content">
- <div class="post-thumbnail">
- <?php echo the_post_thumbnail(array(180,180), ['class' => 'p-2 float-end']); ?>
- </div>
- <?php the_excerpt();?>
- </div>
- </div>
- <?php endforeach;wp_reset_query();?>
- </div>
- </div>
- <?php get_footer();?>
|