Site logo

[Resolved] Custom post template not loading

Home Forums Support [Resolved] Custom post template not loading

Home Forums Support Custom post template not loading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2539687
    Alexander

    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

    #2540105
    David
    Staff
    Customer Support

    Hi there,

    try changing:

    generate_do_template_part( 'content', 'idea' );

    to:

    generate_do_template_part( 'idea' );

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.