askwpcoach

make a link ( href ) dynamic

Nov 13th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. /*theme-options.php : Use text-field to get URL*/
  2. //Get Link URL
  3. $options[] = array( "name" => "Show a Text Field ( Single Line )",
  4.                     "desc" => "Enter text into the field",
  5.                     "id" => $shortname."_linkurl",
  6.                     "std" => "http://yoursiteurl.com/",
  7.                     "type" => "text");
  8.  
  9.  
  10. /*Dynamic URL update in theme*/
  11. <a href="<?php echo get_option('of_linkurl') ?>">LINK TEXT</a>
Advertisement
Add Comment
Please, Sign In to add comment