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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -