RBA Cash Rate: 4.35% · 1AUD = 0.67 USD · Inflation: 4.1%  
Leading Digital Marketing Experts | 1300 235 433 | Aggregation Enquires Welcome | Book Appointment
Example Interest Rates: Home Loan Variable: 5.38% (6.14%*) • Home Loan Fixed: 5.44% (6.26%*) • Fixed: 5.44% (6.26%*) • Variable: 5.38% (6.14%*) • Investment IO: 5.69% (6.52%*) • Investment PI: 5.49% (5.98%*)

Embed Voxer Audio in Your Website With WordPress Shortcode

Voxer is a San Francisco based mobile app development company best known for its free Voxer Walkie Talkie app for smartphones. The Voxer Walkie Talkie is both a live "push-to-talk" system and a voice messaging system. Messages on Voxer are delivered live as they’re being recorded and then delivered as a voice message as well. While we just registered an account we have no immediate plans of using it. The UI is awkward and the experience is poor. While many swear by it, we're yet to understand why.

A client required a shortcode so we wrote this very quickly. The default Voxer embed code is extremely limiting and poorly constructed so we'd generally advise against using it.

WordPress Shortcode

Copy and paste the WordPress function into your theme's functions.php file or, if you sensibly have one installed, your custom functions plugin.

1
<?php 
2
/*
3
 Embed Voxed Audio in Your Website With WordPress Shortcode
4
 https://web.voxer.com/u/beliefmedia
5
 http://www.beliefmedia.com/code/wp-snippets/voxer-embed-wordpress
6
*/
7
 
8
function beliefmedia_embed_voxer($atts) {
9
 
10
  $atts = shortcode_atts(array(
11
    'url' => '',
12
    'height' => '215',
13
    'width' => '100%',
14
    'minwidth' => '320'
15
  ), $atts);
16
 
17
 /* Return player */
18
 return '<div style="margin: 0 auto; width: ' . $atts['width'] . '; height: ' . $atts['height'] . 'px;"><iframe src="' . $atts['url'] . '" style="min-width:' . $atts['minwidth'] . 'px; width:' . $atts['width'] . '; min-height:' . $atts['height'] . 'px;" frameborder="0"></iframe></div>';
19
}
20
add_shortcode('voxer', 'beliefmedia_embed_voxer');

If you require shortcode to work in a sidebar widget, you'll have to enable the functionality with a filter. If you're using our custom functions plugin, you'll have that feature enabled by default.

■ ■ ■

 
Download our complimentary 650-page guide on marketing for mortgage brokers. We'll show you exactly how we generate billions in volume for our clients.
Finance Guide, Cropped Top and Bottom
  Timezone: 1 · [ CHANGE ]

Like this article?

Share on Facebook
Share on Twitter
Share on Linkdin
Share on Pinterest

Leave a comment