3 posts
  • Located in Australia
  • Has sold $1,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Has collected 10+ items on Envato Market
Brancharrow
says

Hey guys,

I’m looking for clarification as to whether or not this is allowed. The theme submission guidelines state:

4. If incorporated into the theme, custom template files are required to be called using get_template_part() or locate_template()

I’ve been trying to pass variables through get_template part without luck. One solution I’ve come across is to use the following instead:

include( locate_template(‘something.php’ ) )

Is this going to pass guidelines? It’ll have a major bearing on how I put the theme together.

Thanks.

1859 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Helped several times protecting Envato Market against copyright violations
+9 more
ImanGM
Moderator
says

Hi,

Maybe we could be able to help better if you paste some lines of your code :)

Cheers,
Iman

by
by
by
by
by
by