27 is extreme, but i’ll be able to tell if it’s working. i’ll edit it to a lower number of course.
i’m not too good at child themes. i tried one with a loop and couldn’t figure out if i had it placed right or if i was calling it right. get_template etc.
so you make a child folder in the expound folder:
<?php
/*
* Template Name: My Custom Page
* Description: A Page Template with a darker design.
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop', 'page' ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
here’s the loop code i had in that child folder too. (expound-child/loop.php)
/*
Theme Name: Expound Child
Theme URI: https://ivykennedy.com/home2/expound-child/
Description: Expound Theme
Author: Ivy Kennedy
Author URI: https://ivykennedy.com/home2/
Template: expound
Version: 1.0.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: expound-child
*/
@import url(“../expound/style.css");
/* =Theme customization starts here
-------------------------------------------------------------- */
<?php $args = array(
'posts_per_page' =>4,
'cat' => 4,
'order' => 'DESC',
'orderby' => 'date'
);
$loop = new WP_Query( $args );
if( $loop->have_posts() ) :
single_cat_title();
while( $loop->have_posts() ) : $loop->the_post();
the_title();
endwhile;
endif;
wp_reset_postdata(); ?><?php $args = array(
'posts_per_page' =>4,
'cat' => 4,
'order' => 'DESC',
'orderby' => 'date'
);
$loop = new WP_Query( $args );
if( $loop->have_posts() ) :
single_cat_title();
while( $loop->have_posts() ) : $loop->the_post();
the_title();
endwhile;
endif;
wp_reset_postdata(); ?>
never mind the /home2 this is when i was editing my site and i didn’t want people to see.