I echoed out this $google_map_api_key = get_option('talimi_mapapi');
and its working fine.
try in functions.php
add require_once get_template_directory() . '/page-templates/theme-settings.php';
or add wp-load.php
in your file.
if you are using multi-site then try <?php get_site_option( $option, $default , $use_cache ) ?>
reference https://codex.wordpress.org/Function_Reference/get_site_option
Related Posts:
- add_submenu_page not working
- Return value of add_menu_page
- add_menu_page with no link
- How to point “add_menu_page” to HTML file rather than PHP function
- Auto add (multiple) Custom Post Types to menu
- add_menu_page the children get url encoded prefix
- add_menu_page include a php page from theme directory
- How is a widget supposed to reference what is added to custom submenu or addmenu fields?
- Highlighting admin submenu pages
- Not able to show the add_menu_page icon
- usage of admin_url() in add_menu_page()
- add_menu_page() with different name for first submenu item
- do_shortcode() within Admin Page
- Show Custom Taxonomy Inside Custom Menu
- add_menu_page permissions – what am I doing wrong?
- Add custom page link with anchor
- How to remove duplicate link from add_menu_page
- How to use a WordPress’ existing admin icon?
- Save Plugin Version Number as Option?
- What is the use of $page_title and how to use it?
- Save and retrieve custom plugin options value
- Adding an admin page – OOP approach not working
- The seventh parameter passed to add_submenu_page()
- What is the correct form action URL for network options pages?
- Generate Advanced Custom Fields box in custom admin menu page
- Add highlighting to new Admin Dashboard Menu Item
- How to add a sub menu with AJAX?
- difference between add_object_page and add_menu_page
- Is it possible to set a option, and then redirect to another page directly from a admin notice link?
- Master menu item for multiple plugins?
- Seriously stuck with some custom meta box/plugin stuff
- How to prevent parent admin page from appearring as a child admin page
- How to update selective options on plugin settings page
- Admin Menus – Name Menu different from first Submenu [duplicate]
- add_menu_page() with function inside a class [duplicate]
- Enqueueing Scripts on a Custom Top-level Menu Page
- Settings page above CPT page in admin section
- Performance of several get_option() calls
- Is it ok to call get_option without hooks?
- Settings API – input always updates over validation
- Using Checkboxes on Plugin Options Page for Custom Plugin
- Creating Admin Options Page where users can make changes to a theme
- How to change menu page capability
- How to avoid creating first submenu page that is same as menu page?
- add_page_menu to make shortcut to widgets
- Theme Options page not showing up in admin menu
- Why add_menu_page adds admin.php and how to remove it?
- Admin Dashboard with Custom Tab for Client
- Is there any way to add absolute path for add_menu_page function?
- add_menu_page() for more than one user role
- Where is the submitted $_POST array stored after an option page submission?
- Hiding Admin Page While Keeping Menu Expanded
- How to add custom menu item on plugin activation?
- Associating custom submenu item with post type of top level menu item
- WordPress setting with select – where is my mistake?
- Wp menu add page link as custom empty link
- Serialize data for wp options
- Determine Registered Admin Menus
- Add submenus to Theme options menu
- Error: options page not found when I try to save the changes made in my settings page
- Insert & order custom post types in/as submenu
- Adding subdomain to home_url for “add_menu_page”
- add_menu_page does not seem to work in a class
- Change custom post type slug from plugin options
- How to prevent options.php deleting valid existing data from the database
- how to open page, defined in plugin, from dashboad widget
- add_submenu_page function to show videos table
- Set different custom menu items for different user roles
- Check if Page Already Exists in Menu
- Add Plugin options as subpage to Theme options page
- Add_menu_page not displaying the menu in class based plugin
- Addition of custom option panel crashes Media Library & Admin Area
- Able to edit custom post, but unable to create new custom post when within submenu. What capability is missing?
- Add menu option to “New Post” menu in admin bar
- Is there documentation reference for forms in menu and setting pages?
- How to add tags in Submenu page or Menu page
- Create tabs in admin options page from custom post type loop
- Pagination in plugin’s backend
- Dynamic admin submenu
- Add a page in admin without adding menu item
- Add_menu_page() error message -> “You do not have sufficient permissions to access this page”
- How can I highlight a top level dashboard menu item created for a custom taxonomy?
- Custom plugin settings link doesn’t append current class to menu item when visited? Why?
- Plugin Options not being output
- why add_menu_page use simple function as arg while add_meta_box a call back?
- Why aren’t these WordPress options being saved to the database correctly?
- Finding the screen id of a page generated with add_menu_page
- How to add new options to my WordPress plugin
- Gathering and logging data from a plugin: how to do it without race conditions?
- WordPress custom plugin gives error
- meta box on new admin page
- Warn user that data may be lost for custom pages
- Add menu item to edit specific page
- How to retrieve the options from this options page?
- Issue on Setting $icon_url Parameter on WP add_menu_page()
- How to save custom form data in wp_options table
- WordPress add page under admin submenu and retaining the active status of the parent submenu page in the menu
- WordPress Settings API Repeatable fields
- How to automatically redirect to custom admin menu after plugin activation?
- Plugin add_action and add_menu_page