Results 1 to 10 of 10

Thread: Need Help With A Tap-To-Call Button

  1. #1
    Thread Starter
    palent's Avatar
    Join Date
    Oct 2011
    Location
    United States
    Posts
    51
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Need Help With A Tap-To-Call Button

    I am trying to figure out how to add a working "tap-to-call" image (button) after the description in all ads. Following is an idea for the code but it doesn't work. The custom telephone field is "cp_phone_number".

    Possible Idea Code:
    PHP Code:
    PHP Code:
    <p><center><a href="tel:<?php if ( get_post_meta($post->ID'cp_phone_number'true) echo $string preg_replace'/\D/'''$string ); ?><img src="http://piedmontautodirectory.com/wp-content/uploads/2015/03/tap-to-call-button-8-200.png" alt="" /></a></center></p>
    PHP Code I found that should remove all characters but numbers:
    PHP Code:
    PHP Code:
    $string preg_replace'/\D/'''$string ); 
    Example: 1-499-555-1212 would end up being 14995551212.

    Thanks

  2. #2
    Thread Starter
    palent's Avatar
    Join Date
    Oct 2011
    Location
    United States
    Posts
    51
    Thanks
    2
    Thanked 2 Times in 2 Posts

    I Was Able Find Away

    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,499
    Thanks
    75
    Thanked 556 Times in 504 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


  4. #4
    Thread Starter
    palent's Avatar
    Join Date
    Oct 2011
    Location
    United States
    Posts
    51
    Thanks
    2
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,499
    Thanks
    75
    Thanked 556 Times in 504 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


  6. #6
    Thread Starter
    palent's Avatar
    Join Date
    Oct 2011
    Location
    United States
    Posts
    51
    Thanks
    2
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,100
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  8. #8
    Thread Starter
    palent's Avatar
    Join Date
    Oct 2011
    Location
    United States
    Posts
    51
    Thanks
    2
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #9
    Thread Starter
    palent's Avatar
    Join Date
    Oct 2011
    Location
    United States
    Posts
    51
    Thanks
    2
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #10
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,100
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Shortcode or PHP Call
    By mickforand in forum QR Codes Widget
    Replies: 1
    Last Post: April 3rd, 2014, 02:40 PM
  2. Jomark API call issue with Indeed.com
    By johnbolyard in forum Report JobRoller Bugs
    Replies: 1
    Last Post: August 20th, 2013, 09:38 AM
  3. Can't Call New Function File
    By scarstens in forum Help Using ClassiPress
    Replies: 0
    Last Post: April 27th, 2010, 04:10 AM