Greetings, I am stumped and I hope someone can help.
I am trying to take the input from a theme option and create shortcodes with them so that I can use the information throughout my site.
In the header.php of this theme I see them using the following at the very top of the file;
<?php global $cbt_options; ?>
then in the body of the file, they pull name, email, and phone which is stored in the theme options like this;
<?php echo $cbt_options?>
I am trying to turn this into a short code, so I created a plugin as such;
Plugin Name: Customize Market Center
Plugin URI: http://intimatetickles.biz/it_mc_shortcodes
Description: Add Shortcodes Using Theme Options – Upload and Activate.
Author: Storme Brown
Author URI: http://webstorme.com
// Add Shortcode Consultants Phone
add_shortcode( ‘consultant_phone’ , ‘fn_get_consultant_phone’ );
$cbtconsultantphone = ($cbt_options);
But this did not work. SOMETHING seems to be happening, because the shortcode itself disappears from the page, but it is not replaced with the content.
Any chance you might be able to help me out with writing this code? Or perhaps – is this an impossible task?
I can see the information in the database in wp_options and wp_4_options (multisite). Is this the problem?