Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

shortcode wordpress form

public function add_shortcode_fileds() {
    add_shortcode( 'add_fields', 'input_fields' );
    function input_fields( $atts ) {
        $atts='<form method="post" action="">';
        $atts.='<input type="text">';
        $atts.='<input type="submit">';
        $atts.='</form';
        return $atts;
    }
}
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #shortcode #wordpress #form
ADD COMMENT
Topic
Name
8+6 =