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

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -