WordPress.org

Ready to get started?Download WordPress

Forums

Setting OptionTree option to javascript variable (1 post)

  1. LukeAskew
    Member
    Posted 3 years ago #

    I'm trying to set a javascript variable to an Optiontree option, but it doesn't seem to be taking. Any help?

    Here's my code:

    var fundsRaised = "<?php if ( function_exists( 'get_option_tree' ) ){echo get_option_tree( 'total_raised' ); }?>";

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags