I'm trying to create some custom shortcode - I want to be able to have names and numbers of people I want to display on my website, but as a shortcode, so it doesn't have to be typed in again and again.
So for instance to have [joe] relate to 'Joe Bloggs - 01925 265646'
I'm currently using the Ultimate Tables plugin and would want to put the shortcode into this, and then for it to come up with the longer information.
I've been playing around for a few hours and still struggling - I've tried putting it directly into functions.php and have tried using the 'Shortcodes Pro' plugin but I can't figure out how to make it work (sorry, I'm not a massively advanced Wordpress user!).
This is the code I put into the functions.php section of the theme:
// Add Shortcode
function joe() {
}
add_shortcode( 'Joe Bloggs - 01925 265646', 'joe' );
Pretty much, my aim is to avoid having to manually enter phone numbers because on our old website this led to the phone numbers being entered incorrectly sometimes, as they are entered about dozens of times.
Thanks so much for your help in advance.