Adding ads to the member search result page for certain cities
authorLaury GvR <laury@gaslightmedia.com>
Mon, 16 Oct 2017 21:13:11 +0000 (17:13 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 16 Oct 2017 21:13:11 +0000 (17:13 -0400)
sections/interior-page.php

index 8364a2f..d0556df 100644 (file)
@@ -1,5 +1,19 @@
                     <main class="page-inside">
                         <div id="content-wrapper">
+                                <?php 
+                                switch ($_REQUEST['cities'][0] ) {
+                                    case 37: // Gaylord
+                                        echo do_shortcode("[the_ad id='1182']");
+                                        break;
+                                    case 89: // Petoskey
+                                        echo do_shortcode("[the_ad id='1180']");
+                                        break;
+                                    case 106: // Traverse City
+                                        echo do_shortcode("[the_ad id='1186']");
+                                        break;
+                                    default:
+                                        break; // No ads
+                                } ?>
                             <div class="row">
                                 <?php if(function_exists('bcn_display') && !is_front_page())
                                 {