7

Avoid Duplication In WordPress Theme Code

http://www.deluxeblogtips.com

When coding a WordPress theme, you might meet the situation when a section of code is duplicated across pages, for example the Loop is presented in all Index, Archive and Category pages. To avoid such code duplication, we can load a template part into a template file (other than header, sidebar, footer) to make it easy for a theme to reuse sections of code.

Created by rilwis 1 year 42 weeks ago – Made popular 1 year 42 weeks ago
Category: Wordpress Tutorials