I saw that but didn’t understand, now I think I do.
I can either :
– keep using get_template_part within child theme templates as default wordpress behavior
or
– use generate_do_template_part, remove the child theme templates and use a add_action( ‘generate_before_do_template_part’, function…) which would check the post_type and displays information accordingly
Using the later opens up possibilities of calling those from Elements and other places in the code. Did I get this right ?
Exactly! There’s nothing wrong with keeping the core get_template_part() if you’re already using a child theme.
generate_do_template_part() simply allows for a way to remove the default get_template_part() and add your own loop item without the need for a child theme template 🙂