Dropdown search was using wrong URL
authorLaury GvR <laury@gaslightmedia.com>
Fri, 1 Sep 2017 14:54:33 +0000 (10:54 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 1 Sep 2017 14:54:33 +0000 (10:54 -0400)
Dropdown header search was getting the permalink of a page by id of
118 which was on this site a nextgen gallery. The permalink of the
search form has now been set to getting the page by its slug:
site-search.

parts/search-dropdown.php

index 1f51fdf..40d51ea 100644 (file)
@@ -6,7 +6,7 @@
         <div class="member-search-label">Business Directory Search:</div>
         <input class="search-button button site-search-button" type="submit" value="Search" name="submit">
     </form>
-    <?php $url = get_permalink(118); ?>
+    <?php $url = get_permalink(get_page_by_path('site-search')); echo "<div>URL OVER HERE ".$url."</div>";?>
     <form method="POST" action="<?php echo $url;?>?glm_action=list" class="category-search-form">
         <?php $categories = apply_filters('member_categories', false); ?>