From 0833d2ed3e2dbb44d8e740540ceb68b32ee8ff0d Mon Sep 17 00:00:00 2001 From: koenemann Date: Fri, 22 Jan 2016 13:59:47 +0100 Subject: [PATCH] Moving Loops to subdirectory --- archive.php | 2 +- index.php | 2 +- content-none.php => loop-templates/content-none.php | 0 content-page.php => loop-templates/content-page.php | 0 content-search.php => loop-templates/content-search.php | 0 content-single.php => loop-templates/content-single.php | 0 content.php => loop-templates/content.php | 0 page-templates/fullwidthpage.php | 2 +- page.php | 2 +- search.php | 2 +- single.php | 2 +- 11 files changed, 6 insertions(+), 6 deletions(-) rename content-none.php => loop-templates/content-none.php (100%) rename content-page.php => loop-templates/content-page.php (100%) rename content-search.php => loop-templates/content-search.php (100%) rename content-single.php => loop-templates/content-single.php (100%) rename content.php => loop-templates/content.php (100%) diff --git a/archive.php b/archive.php index 2095913..c3d30f0 100644 --- a/archive.php +++ b/archive.php @@ -34,7 +34,7 @@ get_header(); ?> * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ - get_template_part( 'content', get_post_format() ); + get_template_part( 'loop-templates/content', get_post_format() ); ?> diff --git a/index.php b/index.php index b6e52ce..9bf9bd8 100644 --- a/index.php +++ b/index.php @@ -36,7 +36,7 @@ get_header(); ?> * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ - get_template_part( 'content', get_post_format() ); + get_template_part( 'loop-templates/content', get_post_format() ); ?> diff --git a/content-none.php b/loop-templates/content-none.php similarity index 100% rename from content-none.php rename to loop-templates/content-none.php diff --git a/content-page.php b/loop-templates/content-page.php similarity index 100% rename from content-page.php rename to loop-templates/content-page.php diff --git a/content-search.php b/loop-templates/content-search.php similarity index 100% rename from content-search.php rename to loop-templates/content-search.php diff --git a/content-single.php b/loop-templates/content-single.php similarity index 100% rename from content-single.php rename to loop-templates/content-single.php diff --git a/content.php b/loop-templates/content.php similarity index 100% rename from content.php rename to loop-templates/content.php diff --git a/page-templates/fullwidthpage.php b/page-templates/fullwidthpage.php index fa1d4ef..6e815dd 100644 --- a/page-templates/fullwidthpage.php +++ b/page-templates/fullwidthpage.php @@ -19,7 +19,7 @@ get_header(); ?> - + - + * If you want to overload this in a child theme then include a file * called content-search.php and that will be used instead. */ - get_template_part( 'content', 'search' ); + get_template_part( 'loop-templates/content', 'search' ); ?> diff --git a/single.php b/single.php index bd111b2..69283ac 100644 --- a/single.php +++ b/single.php @@ -16,7 +16,7 @@ get_header(); ?> - +