@dd32 Thank you. Got it fixed, but I can’t say for sure what the exact issue was. I’ve basically copied the twentynineteen theme and part of the twentyseventeen theme to use for the structure. I’ve removed a bunch of files, functions and code that I will not be using, but apparently there were a coupe functions that I had not gotten to yet that were blocking the template from loading when the homepage was set to static. I don’t know which it was but after delete all I wasn’t going to use, the template loaded.
The problem now is that the posts don’t load from this template the way they did when it was not set to static. Only the title and content from the page displays. This is the code.
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
if ( is_sticky() && is_home() && ! is_paged() ) {
printf( '<span class="sticky-post">%s</span>', _x( 'Featured', 'post', 'wordpressboilerplate' ) );
}
if ( is_singular() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
endif;
?>
</header><!-- .entry-header -->
<div class="entry-image">
<?php
if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail('medium'); ?>
</a>
<?php
endif;
?>
</div>
<div class="entry-content">
<?php
the_content(
sprintf(
wp_kses(
/* translators: %s: Post title. Only visible to screen readers. */
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'wordpressboilerplate' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
)
);
wp_link_pages(
array(
'before' => '<div class="page-links">' . __( 'Pages:', 'wordpressboilerplate' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->