Apina

CTA Events Template venue link idea

Oct 21st, 2014
204
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. //probably not needed but lets put the name in a variable
  3. $x = stripslashes_deep($event->venue_name);
  4.  
  5. //now lets make the name into a post/page slug
  6. $y = strtolower( str_replace(' ', '-', $x) );
  7.  
  8. //now combine them in a link
  9. echo '<a href="http://supersportsevents.me/' . $y . '">' . $x . '</a>';
  10. ?>
RAW Paste Data