Forum for discussing general topics related to Couch.
12 posts Page 2 of 2
Please try this -
Code: Select all
$FUNCS->register_shortcode( 'phonenumber', 'phonenumber_handler' );
function phonenumber_handler( $params, $content=null ){
    global $FUNCS, $CTX;

    extract( $FUNCS->get_named_vars(array(
        'number' => ''
    ), $params) );

    return '<a href="tel:'. $number .'">'. $content .'</a>';
};


Usage:
Code: Select all
[phonenumber 5551234567]Call (555)123-4567[/phonenumber]

Output:
Code: Select all
<a href="tel:5551234567">Call (555)123-4567</a> 

Hope it helps.
Thank you so much KK, works perfect
12 posts Page 2 of 2

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 5 guests

cron