From fe255d47241bb65536570b01407e606d61896ab6 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Fri, 19 Feb 2016 16:03:57 -0500 Subject: [PATCH] Trying to change the link of Reservations in off-canvas --- functions.php | 9 +++++++++ header.php | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 9138f4a..e69eb0e 100755 --- a/functions.php +++ b/functions.php @@ -61,6 +61,15 @@ function glm_page_menu($parent = 0, $class = '') echo ''."\n"; } +function append_query_string( $url, $post ) { + if ($post->ID == 20) { + $url = "http://www.booking.com/hotel/us/days-inn-munising.html?aid=389181;label=metagha-link-mapresultsUS-hotel-509425_dev-desktop_los-1_room-0_lang-en_curr-USD;sid=66fec06c0d0367b2df3d172f9eab90ca;dcid=12;checkin=2016-02-28;checkout=2016-02-29;dist=0;room1=A%2CA;sb_price_type=total;srfid=745e6a3182486f4762ee8af26b7a1216db300661X1;type=total;ucfs=1&"; + } else { + $url = "www.google.com"; + } + return $url; +} +add_filter( 'post_link', 'append_query_string', 10, 2 ); function SearchFilter($query) { if(isset($_GET['searchType'])) { diff --git a/header.php b/header.php index f015f3b..2d295e4 100755 --- a/header.php +++ b/header.php @@ -37,9 +37,6 @@
-- 2.17.1