Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added get-search_form() if no result was returned

It's somewhat sadistic to offer "Try your search again" if you don't offer the search form.
  • Loading branch information...
commit 26892906345293a008f5a63383a033882f02308f 1 parent 19bf8b0
Bego Mario Garde pixolin authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 search.php
5 search.php
View
@@ -51,6 +51,9 @@
<section class="entry-content">
<p><?php _e("Try your search again.", "jointstheme"); ?></p>
</section>
+ <section class="search">
+ <p><?php get_search_form(); ?></p>
+ </section> <!-- end search section -->
<footer class="article-footer">
<p><?php _e("This is the error message in the search.php template.", "jointstheme"); ?></p>
</footer>
@@ -66,4 +69,4 @@
</div> <!-- end #content -->
-<?php get_footer(); ?>
+<?php get_footer(); ?>
Please sign in to comment.
Something went wrong with that request. Please try again.