688 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
_rg_ says

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.

688 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
_rg_ says

Hey i mean, i´m using the functions since long time, but now i started to use them into the functions part, and i discover that, is so nice work that way!

Helpful Information

  • 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.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by