Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
placeholders in plugins
#5
Put this in your themes functions.php file:

Code:
function addKontakt($atts, $content = null){
// add any parameters here, remove if not needed.  
extract(shortcode_atts(array(
    "class" => null,
    "id" => null
  ), $atts));
// params will be available as variables $class, $id etc...

// just return your html code here.
  return 'Your contact form here';     
}
add_shortcode('kontakt-pl','addKontakt', '[kontakt-pl /]');
My Github Repos: Github
Website: DigiMute
Reply


Messages In This Thread
placeholders in plugins - by xxdex - 2014-05-26, 01:42:27
RE: placeholders in plugins - by shawn_a - 2014-05-26, 07:44:01
RE: placeholders in plugins - by xxdex - 2014-05-26, 19:19:43
RE: placeholders in plugins - by n00dles101 - 2014-05-26, 19:48:58
RE: placeholders in plugins - by n00dles101 - 2014-05-26, 20:23:40
RE: placeholders in plugins - by xxdex - 2014-05-26, 21:48:04
RE: placeholders in plugins - by n00dles101 - 2014-05-26, 22:48:50
RE: placeholders in plugins - by xxdex - 2014-05-26, 23:03:37
RE: placeholders in plugins - by n00dles101 - 2014-05-26, 23:16:14
RE: placeholders in plugins - by xxdex - 2014-05-27, 01:52:15



Users browsing this thread: 1 Guest(s)