Site logo

Archived topic

Custom post template not loading

1 reply · Started by Alexander on February 20, 2023

Viewing posts 1–2 of 2

Hi there,

I have a GP child theme and in the root directory of the child theme both a content-idea.php as well as a single-idea.php.

In the single-idea.php I have replaced the code like described here:

if ( generate_has_default_loop() ) {
	while ( have_posts() ) :

		the_post();

		generate_do_template_part( 'content', 'idea' );

	endwhile;
}

However, any changes I now do within the content-idea.php are effectively ignored.

What could I possibly do wrong as this seems so straightforward?

Thanks,
Alex

Hi there,

try changing:

generate_do_template_part( 'content', 'idea' );

to:

generate_do_template_part( 'idea' );

This archived topic is closed to new replies.