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
- Show Custom Taxonomy Inside Custom Menu
- Add custom page link with anchor
- 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?
- Adding an admin page – OOP approach not working
- Generate Advanced Custom Fields box in custom admin 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 update selective options on plugin settings page
- Settings page above CPT page in admin section
- Settings API – input always updates over validation
- Using Checkboxes on Plugin Options Page for Custom Plugin
- How to change menu page capability
- add_page_menu to make shortcut to widgets
- 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
- 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?
- Add submenus to Theme options menu
- Insert & order custom post types in/as submenu
- 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
- 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
- Able to edit custom post, but unable to create new custom post when within submenu. What capability is missing?
- Is there documentation reference for forms in menu and setting pages?
- Create tabs in admin options page from custom post type loop
- Dynamic admin submenu
- Add a page in admin without adding menu item
- Plugin Options not being output
- Why aren’t these WordPress options being saved to the database correctly?
- Finding the screen id of a page generated with add_menu_page
- Gathering and logging data from a plugin: how to do it without race conditions?
- WordPress custom plugin gives error
- 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
- add page to main menu (frontend)
- How can I create a new menu item that links to an archive of a custom post type?
- Show category and tag link as a submenu under custom post type submenu
- Create a select metabox that the user can pupolate?
- Plugin page and capabilities
- What could cause a WP Option to get truncated?
- add_menu_page() with variable function
- How can I add/update post meta in a admin menu page?
- How to Call Specific .PHP file on add_submenu_page selection in Plugin Development?
- wp_options not returning value for logged out users?
- Custom admin menu order fails if slugs are complicated
- How to add styles to a submenu page?
- Make inline uploader (plupload) on options page upload to a specific folder
- do_shortcode() within Admin Page
- add sub_menu to a sub_menu (multiLevel sub_menu) in admin menu in wordpress
- update_option() passing empty array() but still updating
- Multiple checkbox doesn’t work in wordpress settings api
- only last option from theme options is being saved to the DB
- Multisite Setup – Menu Items To Reference Pages in Different Subdomains
- Highlight active Admin Menu when added though add_menu_page
- Create WordPress Menu Item Without Linking to a Custom Page
- How to create a custom menu for specific user
- How to store multiple instances of the plugin’s options for various shortcodes
- add menu page in loop menu order
- how to create pages and link them to a menu
- Populate Dropdwon with DIR files, save value and keep it “selected”
- How to add a menu page for options in wordpress for user that has the role of vendor?
- Add Admin menus or submenus depending on conditions
- Is it possible to have dynamic post id # in add_menu_page()?
- Cloning admin pages like users.php
- Plugin options not appearing on options page using tabbed navigation
- Export and import all Plugin options
- Include paths and functions for external scripts
- Pass custom css class to add_menu_page
- and custom post_types to custom menu
- The menu item is not deleted on WordPress
- When is it OK to create a custom table for a plugin? [duplicate]
- update_option with array_push adding mutiple copies
- Plugin forms overwrite each other’s options