Hey guys, this is not a problem at all, i wish to share what i discover. I´m using this two wonderfull functions to create almost anything on my new theme, it´s very easy.
Boths functions will no return nothing, no error, if function not declared or file do not exists!!
First of all, that´s the main difference if using include(). in fact the get_template_part wil do finaly an include.
Also if you call a function via normal way “your_function()”, and this function does not exists, you will see a beautifull error!!
So, i don´t know if i “discoverd” something, but i´m realy impresed the fast is to code using this 2 functions.
You can also include anything and then replace that part (get_template_part) on child themes as easy as clone and modify the new php file (not only templates, also scripts and functions files)
What you thing? Did you use them?
Take a look at codex, not much info, but has nothing hard on them.
- Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
- Open a support ticket if you would like specific help with your account, deposits or purchases.
- Item Support by authors is optional and may vary. Please see the Support tab on each item page.
Most of all, enjoy your time here. Thank you for being a valued Envato community member.