w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Trying to separate my back-end codes in my front-end(Wordpress)

This should answer that: http://codex.wordpress.org/Function_Reference/get_template_part

Load a template part into a template (other than header, sidebar, footer). Makes it easy for a theme to reuse sections of code and an easy way for child themes to replace sections of their parent theme.

Includes the named template part for a theme or if a name is specified then a specialized part will be included. If the theme contains no {slug}.php file then no template will be included.

For the parameter, if the file is called "{slug}-{name}.php".





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.