html - Trying to separate my back-end codes in my front-end(Wordpress) -
i created form send data email address , i'm trying figure out on how separate back-end front-end in wordpress. said should use get_template_part(). code inside functions.php or separate file?
this should answer that: http://codex.wordpress.org/function_reference/get_template_part
load template part template (other header, sidebar, footer). makes easy theme reuse sections of code , easy way child themes replace sections of parent theme.
includes named template part theme or if name specified specialized part included. if theme contains no {slug}.php file no template included.
for parameter, if file called "{slug}-{name}.php".
Comments
Post a Comment