News blog template wordpress

Here is a basic template for a news blog in WordPress:

Header

Hero Section

Latest News Section

Featured Section

Categories and Archives

Footer

Custom Post Types

Widgets

Theme Customization

Here is an example of what the code for this template might look like:

<?php
/*
Template Name: News Blog
*/

get_header();?>

<div id="hero">
  <h1><?php the_title();?></h1>
  <p><?php the_excerpt();?></p>
  <a rel="nofollow" target="_blank" href="<?php echo get_permalink();?>" class="btn">Read More</a>
</div>

<div id="latest-news">
  <h2>Latest News</h2>
  <ul>
    <?php
    $args = array(
      'post_type' => 'post',
      'posts_per_page' => 5
    );
    $query = new WP_Query($args);
    while ($query->have_posts()) {
      $query->the_post();
     ?>
      <li>
        <h3><?php the_title();?></h3>
        <p><?php the_excerpt();?></p>
        <a rel="nofollow" target="_blank" href="<?php echo get_permalink();?>" class="btn">Read More</a>
      </li>
    <?php }?>
  </ul>
</div>

<div id="featured">
  <h2>Featured</h2>
  <ul>
    <?php
    $args = array(
      'post_type' => 'post',
      'posts_per_page' => 3
    );
    $query = new WP_Query($args);
    while ($query->have_posts()) {
      $query->the_post();
     ?>
      <li>
        <h3><?php the_title();?></h3>
        <p><?php the_excerpt();?></p>
        <a rel="nofollow" target="_blank" href="<?php echo get_permalink();?>" class="btn">Read More</a>
      </li>
    <?php }?>
  </ul>
</div>

<?php get_footer();?>

This is just a basic example, and you will need to customize the code to fit your specific needs. You may also need to add additional code to handle custom post types, categories, and archives.