replacing get_page_by_title functions
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 29 Jan 2016 21:22:43 +0000 (16:22 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 29 Jan 2016 21:22:43 +0000 (16:22 -0500)
header.php

index 9a7e10b..962f256 100644 (file)
@@ -28,7 +28,7 @@
                             <form role="search" method="get" id="searchform" action="<?php echo home_url('/'); ?>">
                                 <div class="large-10 show-for-large-up columns search">
 
-                                        <a id="contact" href="<?php echo esc_url( get_permalink( get_page_by_title( 'Contact Us' ) ) ); ?>">Contact</a>
+                                        <a id="contact" href="<?php echo esc_url( get_permalink( get_post(101) ) ); ?>">Contact</a>
                                         <input type="text" value="" name="s" id="lar-search" placeholder="  Search the site">
                                 </div>
                                 <div class="large-2 show-for-large-up columns search">