Theme development with sage PDF, typo?


If I’ve posted this in the wrong place, don’t hit me, I’m new…

Working from the PDF (it’s great, BTW), I had an issue with getting a template part - basic php/wp include stuff…

The example on page 22 shows:

<?php get_template_part('templates', 'form-newsletter'); ?>

This didn’t work…

What actually works is:

<?php get_template_part('templates/form', 'newsletter'); ?>

Not sure why this is, but it dopes better follow the coding format in the custom template etc.

Hope the above helps someone!

1 Like

Thanks! If you notice anything else, feel free to PM or email me directly. Posting on here is also fine :slight_smile: