php - Wordpress Post href dynamic -
i'm newbie wordpress , problem wanted link site using link tag. example:
wordpress post url = www.defaultsite.com/my-awesome-site?name=admin
so in link tag be:
<a href="http://www.othersite.com/admin" target="_blank">click here</a>
wherein name dynamic. unfortunately in wordpress post, cannot echo out $_get['name']. how solve problem?
so want achieve is:
<a href="http://www.othersite.com/".<?php echo $_get['name'] target="_blank">click here</a>
<a href="http://www.othersite.com/<?php echo $_get['name']; ?>" target="_blank">click here</a>
Comments
Post a Comment