Change WordPress user roles and capabilities Forums How to or FAQ Problem with shortcodes after moving WP to a new server Reply To: Problem with shortcodes after moving WP to a new server

#2459
kardon
Participant

OK, I found shortcodes.php and made a change to force it ON

class URE_Shortcodes {

private $lib = null;

public function __construct(Ure_Lib_Pro $lib) {

$this->lib = $lib;
$activate_content_for_roles_shortcode = $this->lib->get_option(‘activate_content_for_roles_shortcode’, false);
$activate_content_for_roles_shortcode = true;
if ($activate_content_for_roles_shortcode) {
add_action(‘init’, array($this, ‘add_content_shortcode_for_roles’));
}
}
// end of __construct()

I did do an echo on that before and after setting it to test it. When it did the get_option the variable returned was blank.

So, this is the problem. How can I fix the get to the db to return the value of ON. I checked once again and that box is checked on the network settings for URE.