Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $spl = explode('/', $_SERVER['REQUEST_URI']);
  2. if($spl[1]=='adventures' && strlen($spl[3])>2)
  3. {
  4. $id = get_the_ID();
  5. $precio = get_post_meta($id, 'precio', true);
  6. $duracion = get_post_meta($id, 'duration', true);
  7. $adv = $spl[3];
  8. echo '<div id="booking_box_sm"><a href="#" onclick="bookingpopup(\''.$adv.'\');return false;">Make Enquiry</a></div>';
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement