Questions tagged [add-settings-section]

This is part of the Settings API, which lets you insert your own custom section in an existing wp-admin settings page.

0
votes
1answer
15 views

image on homepage disappeared due to change of permalink name

where to do this in Wordpress backend? I need to add the missing icons for "Smart living" and "Smart workspace" on homepage section - image is not in available in Media - It is in a section of the ...
1
vote
1answer
34 views

Two Types of settings in WP - The Doubt

I was trying to learn some basics of wordpress plugin development, and I stumbled upon two types of settings. 1 add_settings_field( 'custom_title', esc_html__('Custom Title', 'myplugin'), ...
0
votes
1answer
28 views

Problem with checkbox in Settings API

I am trying to create a simple checkbox setting that toggles a section in a blog post on or off in a theme settings page. Unfortunately it's not saving the checkbox setting. I check the box and when ...
0
votes
0answers
206 views

options.php not found when saving Theme Settings

I am building a custom theme from the Underscores starter theme (https://underscores.me/), and am building a theme settings page. When I go to save my fields, I get the "Error: options.php not found" ...
0
votes
0answers
46 views

How do I add a textarea (multirow) option to my Wordpress plugin?

I'm getting a little confused between the options and settings APIs. I want to add three multirow text fields (displayed as a textarea) for my plugin. I just want to allow the user to specify three ...
1
vote
1answer
134 views

Sections and tabs DRY - WordPress settings API

I have made a custom setting page containing 3 settings sections under 3 tabs. However I am a total noob when it comes to PHP and I feel like I have written a lot of unnecessary, repeated code. My ...
0
votes
2answers
292 views

Section Name for Menu in Theme Customizer

I browsed many articles to know the section Name of the "Menu" in the theme customizer. Here are the few resources that proclaim and identifies that the default section name is "nav" → https://...
0
votes
1answer
42 views

Theme Customize API Panel Concept

I am assuming while writing this post that I have a clear understanding of the theme customizer API: There are sections → Under which we have Panels → and under these panels we have Fields. I am ...
1
vote
1answer
1k views

site identity section name?

In the customizer, the site identity section is missing a logo upload field. Adding such field is not a big deal: A field can be added, but I don't know the section name that is created in the core of ...
0
votes
1answer
23 views

Settings API and 'type' => 'font'

array( 'name' => 'textarea', 'label' => __( 'Textarea Input', 'wedevs' ), 'desc' => __( 'Textarea description', 'wedevs' ), 'placeholder' => __( '...
0
votes
2answers
629 views

add_settings_error on validating plugin options API

I am developing a plugin which uses options API. I defined a class that uses a function to sanitize the inputs, but when I submit the options form, It displays errors and info twice. And also I didn'...
0
votes
1answer
801 views

How to save plugin custom settings page fields

I want to implement a plugin which gets 2 fields in admin area and saves those in options as array I read the page Custom Settings Page but seems it doesn't describe how to save fields values in ...
0
votes
1answer
21 views

Using a variable in name of dynamically-called helper function

I'm trying to add some functionality to my "Settings" page so that if a new season is added in a custom post's metabox, a new field is generated in Settings to allow users to add a title and ...
1
vote
1answer
347 views

Wordpress API Setting : the title of the section rendered not showing

Please see the below-mentioned code → function klogeto_initialize_theme_options() { // Let's introduce a section for the header options add_settings_section( 'header_section', ...
0
votes
1answer
77 views

Adding settings link to plugin doesn't work

I'm trying to add a "settings" link to my plugin on the plugins page. I used this code, which I found on various sites and also in the documentation, but it simply doesn't work (the link doesn't show)....
4
votes
2answers
4k views

Add your own settings page for plugin

I'm using the Wordpress Plugin Boilerplate to make a plugin and I'm having some trouble outputting a form for users to input configuration options for the said plugin. I have the following methods ...
0
votes
1answer
18 views

Wordpress Customazation API section in section

Heyo, I'm once again stuck with my Customizer API. How can I put my sections together in another Section/Folder (however you wana call it)? Like the standard Widget section: I have searched for ...
1
vote
2answers
455 views

Extend plugin options page

I had recently installed Post Views Counter plugin, which created an options page under the Wordpress Settings menu. Now, I'd like to extend plugin functionalities by adding few more options. It will ...
0
votes
1answer
128 views

add_settings_section() order

I made on a custom theme for a client. For this theme I created a settings page so that the client could edit some variables to his liking. This part is working properly. For this same site, I ...
0
votes
0answers
242 views

Can't save multiple sections on one page with register_setting

I try to write my first own theme but currently I struggle with making the options with the Settings API. My input values are just not saved and I don't know why. I read this tutorial from Tom ...
0
votes
1answer
2k views

Add custom content in user-edit.php page

When I go to edit a user's account located in: http://web.site/wp-admin/user-edit.php?user_id=ID I want to add a custom section with my own information (just text), similar to the ...
2
votes
1answer
496 views

Theme Customizer - How to create a sub panel

In Theme Customizer, i'd like to create a sub panel like this one of wordpress: When we add a new item, a new panel which allows us to pick up a item displays on the right, how can i do the same ? ...
1
vote
3answers
3k views

Plugin set default setting value when it activated

I have set up my plugin option on admin panel with /** * Register and add settings */ public function page_init() { register_setting( 'my_option_group'...
0
votes
1answer
397 views

Splitting do_settings_sections within HTML?

This seems like it should be very simple to achieve, but I have spent far too long trying to figure it out. I have two settings sections: add_settings_section( 'cp_required_info', 'One', array($this, ...
0
votes
1answer
228 views

Warning: call_user_func() expects parameter 1 to be a valid callback

This my code: $array_theme_options = array( array( 'id' => 'facebook_url', 'title' => 'Facebook Profile Url', 'callback' => 'display_facebook_element', '...
0
votes
1answer
53 views

Receive “menu-toogle” event from section menu in customizer

I'm building a plugin that does some transformations on front page through JS script. I'm trying to build a contextual control in the customizer so that when a certain section is opened I modify the ...
1
vote
0answers
266 views

Move Custom Fields on General Settings Page to New Location

I've created some custom fields on the General Settings page after studying up on this post: Add multiple custom fields to the general settings page. I'd really like to move them to their own ...
0
votes
2answers
187 views

How to add admin bar only page?

I successfully managed to create admin bar item using this: add_action('admin_bar_menu', 'toolbar_link_to_mypage', 999); function toolbar_link_to_mypage($wp_admin_bar){ global $wp_admin_bar; ...
0
votes
1answer
644 views

Adding Form Fields with Settings API

I'm making a plugin with an administration page witch uses the Settings API. I could make one section and one option. But how can I add other form fields to it? If I add an input tag to the callback ...
0
votes
1answer
47 views

custom change in front page [closed]

I want to remove the archive widget on the front page. How do I do it please? The archive section is at the bottom of site. Kirkuk Now Best Regards
2
votes
3answers
176 views

Echo all API Settings sections?

Is there a WordPress function displaying all sections registered with add_settings_section()? I was thinking about SQL query maybe, but have absolutely no idea how and where these are stored, couldn'...