cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




use shortcode api

Add a New Topic Reply to Post
Post

Tomáš Kapler - Guest

6:53 pm - August 1, 2008

Use wordpress standard shortcode API (http://codex.wordpress.org/Shortcode_API)

//  Add Cform [cforms id="2"]
add_shortcode('cforms', 'ds_cformsShortcode');
function ds_cformsShortcode($atts) {
    extract(shortcode_atts(array(
        'id' => '1'
    ), $atts));

    return cforms("","{$id}");
}


It is good for compatibility with other plugins etc. Thank you for your great effort with cforms. Regards Tomas Kapler (http://www.developstudio.com)


Oliver - Admin

7:12 pm - August 1, 2008

posts 3562

Thanks for the suggestion.

Any news on the Czech localization? :-)

Add a New Topic Reply to Post


Reply to Topic: use shortcode api
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 1 + 2        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)