get_template_part [ WordPress Function ]
| Parameters: |
|
| Uses: | |
| Defined at: |
|
Load a template part into a template
Makes it easy for a theme to reuse sections of code in a easy to overload way for child themes.
Includes the named template part for a theme or if a name is specified then a specialised part will be included. If the theme contains no {slug}.php file then no template will be included.
The template is included using require, not require_once, so you may include the same template part multiple times.
For the $name parameter, if the file is called "{slug}-special.php" then specify "special".
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- get_template_part - WordPress Codex
Description. 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 ...
codex.wordpress.org - Tighter and leaner WordPress templates with get_template_part ...
Apr 17, 2012 ... Though not a huge, or terribly powerful function, get_template_part() has become a core part of all of my themes. get_template_part() is more ...
waterstreetgm.org - How Does get_template_part Work in WordPress?
Feb 9, 2011 ... I have seen quite a few searches come through lately for get_template_part. Seems like a lot of folks don't know what it's for, what it does, ...
voodoopress.com - get_template_part() - post-meta not working? - WordPress
Apr 17, 2012 ... Maybe I simply do not understand what get_template_part() is doing … I have a file called event-list.php that should work as template for other ...
wordpress.stackexchange.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- Digital Raindrops on "get_template_part inserts "quotes" in my theme"
- Maximus Saint on "get_template_part inserts "quotes" in my theme"
- Digital Raindrops on "get_template_part inserts "quotes" in my theme"
- Maximus Saint on "get_template_part inserts "quotes" in my theme"
- jrevillini on "get_template_part Not Working"
- deepbevel on "Using get_template_part inside folder"
- Rev. Voodoo on "Using get_template_part inside folder"
- nelsonpatojimenez on "Using get_template_part inside folder"
- deepbevel on "Using get_template_part inside folder"
- Rev. Voodoo on "Using get_template_part inside folder"