diff --git a/archive.php b/archive.php index cbea50c..4243a14 100644 --- a/archive.php +++ b/archive.php @@ -6,7 +6,7 @@ // why can't wordpress allow for post date asc sorting out of the box... - $posts = query_posts($query_string . '&order=asc'); + query_posts($query_string . '&order=asc'); while (have_posts()) { the_post(); diff --git a/partials/search-comic-post.inc b/partials/search-comic-post.inc new file mode 100644 index 0000000..9506a51 --- /dev/null +++ b/partials/search-comic-post.inc @@ -0,0 +1,10 @@ +
+
+
+ Click for full size.
+

+
+
+
+
+
\ No newline at end of file diff --git a/partials/search-not-found.inc b/partials/search-not-found.inc new file mode 100644 index 0000000..3d7ce64 --- /dev/null +++ b/partials/search-not-found.inc @@ -0,0 +1,8 @@ +
+
+

No entries found.

+

Try another search?

+

+
+
+
diff --git a/partials/search-page-nav.inc b/partials/search-page-nav.inc new file mode 100644 index 0000000..0e6dacd --- /dev/null +++ b/partials/search-page-nav.inc @@ -0,0 +1,7 @@ + + + diff --git a/partials/search-results-count.inc b/partials/search-results-count.inc new file mode 100644 index 0000000..690a37f --- /dev/null +++ b/partials/search-results-count.inc @@ -0,0 +1,7 @@ +
+
+ post_count; ?> +

Search for ‘

+ Found result. +
+
diff --git a/search.php b/search.php index 2a0e46a..59e750f 100644 --- a/search.php +++ b/search.php @@ -1,72 +1,27 @@
+
-
- post_count; - ?> -

Search for ‘

- Found result. -
-
- - - - + if (have_posts()) { + query_posts($query_string . '&order=asc'); - - -
-
-
- Click for full size.
-

-
-
-
-
-
- - - -
-
-

-
- -
-
-
- - + while (have_posts()) { + the_post(); + + if (in_comic_category()) { + include(get_template_directory() . '/partials/archive-comic-post.inc'); + } else { + include(get_template_directory() . '/partials/archive-blog-post.inc'); + } + } - - - - - - - - -
-
-

No entries found.

-

Try another search?

-

-
-
-
- - - + include(get_template_directory() . '/partials/archive-page-nav.inc'); + } else { + include(get_template_directory() . '/partials/search-not-found.inc'); + } + ?> diff --git a/sidebar.php b/sidebar.php index 3d76947..73e5dfe 100644 --- a/sidebar.php +++ b/sidebar.php @@ -2,10 +2,8 @@ - -
  • Monthly Archives