Add
<?php settings_fields( 'settings-group' ); ?>
<?php do_settings_sections( 'settings-group' ); ?>
immediately after the <form>
tag
Your code is registering the settings group, setting up the DB to store the information, but it is/was missing the callback to allow WordPress to actually act on that information or store it.
The code I provided tells WordPress what to access, and what to do with the form.
Related Posts:
- Add multiple custom fields to the general settings page
- bloginfo() vs get_option?
- what is the meaning of settings_fields()
- How do you permanently remove default rewrite rules from the wp_options table?
- Set default options for inserting media
- Theme options WP Editor
- Updating users_can_register option?
- Fatal error when trying to get admin email on contact form
- Hook specific functions if on a specific admin page
- Two Types of settings in WP – The Doubt
- What is the correct way of updating wordpress options
- How to call particular funcion when the check box is checked in plugin options page
- Move Custom Fields on General Settings Page to New Location
- “options.php” not found
- How do I register a new settings page? [closed]
- Settings in functions.php used by a plugin
- Random text changing to weird icons in both admin & front end
- Register a widget area when a theme option has been saved?
- paginate_links() don’t properly work in search.php?
- How to influence the information displayed on widget inside wp-admin
- Remove Container Element From wp_nav_menu() Markup
- How can I get $id variable in widget’s form function?
- Using a private method as an action callback from within a class
- difference between add_object_page and add_menu_page
- How to activate “Description” metabox for menu item programmatically?
- Make WordPress size and name images for Retina.js
- Pinterest Integration Using functions.php
- Adding WooCommerce to a Custom Theme – not working [closed]
- WooCommerce add_action hook results in 500 error
- Changing itemprop from logo to image on custom logo?
- wp_get_post_terms() returns WP_Error in functions.php but in template it works
- Move jQuery and Migrate to footer?
- Make menu structure match page heirarchy on page parent change
- Change the slug of a particular page every x hours
- Use of undefined constant bloginfo
- Change size and crop medium_large images
- Ninja form Redirect depending on text field content [closed]
- Display Password Protected external RSS in wordpress template
- Problem only while using require_once() within functions.php
- Remove elementor header and display default theme header
- How to force field validation first, then its values saved durning edit profile?
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- How to properly remove style for non logged in and front page only
- enqueue styles for only mobile wp
- WordPress converts media extention URL automatically to video player
- Registration Hooks don’t appear to be working
- How do you Permanently Delete Sidebars
- Allow Contributor to edit their own posts after Adm aproval
- help I changed one currency in woocommerce and everything is ruined [closed]
- How to run a function in every page, every device
- Which function required?
- How to ignore posts in pre_get_posts?
- How to retrieve the values of a sub-field in the first and last row of an (ACF) repeater inside function?
- New functions in separate directory — better, portable way
- WordPress Migration error phpupdate_option is not a function
- Custom Query Not Paginating
- Solved: redirect to another page using functions.php
- How do I place a function in a standalone page?
- Problem in using Customizer
- Ajax resetting my global variable
- Problem enqueuing scripts on not single posts
- Do I Need to Prefix Variables Inside Functions?
- referencing the current user in a page i created in wordpress
- is_main_query() always returning false
- Render page with specific id from functions.php
- Display Child Pages if no child Exists Display Siblings
- How to show ACF value under post/page title in wp-admin
- Undefined variable issue for wp_get_attachment_image_url
- Counting posts and trigger it [closed]
- ACF Flexible in TCPDF
- How do i tweak my wp Post title base on category of the post
- Why isn’t comment validation working?
- I’m creating a online store for my website, my aim is to add description to products in home page only how can i achieve it?
- modifying every other element’s class inside while loop
- Adding Custom Body Class for Page: Shop
- Menu and category highlighting for a single post
- “Conditional query tags do not work before the query is run. Before > then, they always return false. “
- Change ‘Categories’ to ‘Topics’
- Is it possible to use ‘wp_insert_post’ function within a for loop?
- save_post function keeps triggering: Warning: array_map(): Argument #2 should be an array… when restoring from trash
- Code I am placing in the wp_footer is going outside the entire HTML frame!
- How to assign results to variables?
- Restoring pages in wordpress
- Redirect after login to current URL
- Different body image backgrounds on different pages, posts and categories
- Hide certain post types from editors
- Language switcher for subdomains
- Function to draw random image from specified category destroys site logic – why?
- Issues with add_query_arg() not passing a variable
- Add Function For Instances of Custom Text in Multiple Category IDs to display in post content
- Move captions under gallery images in twenty fourteen theme
- Force changing the Site Title and add link
- create submenu page – error function not found or invalid function name
- How to add a class name to the ancestor of a post?
- is_user_logged_in() isn’t working
- Retrive post by tags PHP code
- Sorting date results from a query
- Add custom css to theme
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- How to add more than one menu for logged in members?