Get data from Theme Options and use them into meta options field in custom post type
You can use the get_option function on the back-end too. There are several possibilities on how to pass your option value to your script: Use wp_localize_script function to pass PHP values to your script (see WordPress Codex page for this function). Print your option value along with name and name2 values inside a script tag. … Read more