Skip to content

Instantly share code, notes, and snippets.

@ElmahdiMahmoud
Created November 15, 2012 07:02
Show Gist options
  • Save ElmahdiMahmoud/4077154 to your computer and use it in GitHub Desktop.
Save ElmahdiMahmoud/4077154 to your computer and use it in GitHub Desktop.
wp: Dynamic URL
//Get Link URL
$options[] = array( "name" => "Show a Text Field ( Single Line )",
"desc" => "Enter text into the field",
"id" => $shortname."_linkurl",
"std" => "http://yoursiteurl.com/",
"type" => "text");
<a href="<?php echo get_option('of_linkurl') ?>">LINK TEXT</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment