Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //probably not needed but lets put the name in a variable
- $x = stripslashes_deep($event->venue_name);
- //now lets make the name into a post/page slug
- $y = strtolower( str_replace(' ', '-', $x) );
- //now combine them in a link
- echo '<a href="http://supersportsevents.me/' . $y . '">' . $x . '</a>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement