Questions tagged [settings]

The tag has no usage guidance.

0
votes
2answers
56 views

It is possible to add custom media size in admin media edit?

Hi! It is possible without plugin to add ability edit custom thumbnail image size and apply changes to it?
-1
votes
0answers
12 views

Save input type text via setting api

I need a bit of help here. So all of this worked a couple days ago but now it doesn't anymore and i'm clueless. I save a title and a description in my own plugin admin page via a input field. It ...
0
votes
1answer
15 views

Admin page changes the $_POST data

I'm trying to save a json array to the database, and i created the following class defined('ABSPATH') || exit; class Theme_FAQ { public function __construct() { add_action('...
2
votes
1answer
17 views

Can't access 'Store uploads in this folder'

I have had a problem uploading images from my laptop onto wordpress. Basically, the images are broken and cannot be viewed when implemented on the site. After trying to rectify the problem through ...
0
votes
1answer
48 views

Some fields in Settings API form are saving, others are not

I have a class used for a plugin's admin form, using the Settings API. It has a lot of fields, and some of those fields depend on already existing values in wp_options. The existing options determine ...
0
votes
0answers
20 views

add_settings_field on permalink page

I'm trying to add settings fields on the permalink page. For some reason, it's the only page that doesn't save the settings. To reproduce: <?php function add_settings_permalink() { ...
0
votes
1answer
14 views

Plugins Settings page not updating

After following this tutorial in mostly everything, except the naming, I am currently facing an error: Error: Settings page wasn't found (translated) This is my code: class ConfigPlugin { public ...
0
votes
1answer
43 views

Block properties, attributes and settings

Reading the Gutenberg Handbook about the new Block architecture in WordPress, I've come across references to "properties", "attributes" and "settings" for the blocks. As there's a lot to read, I've ...
0
votes
1answer
121 views

OceanWP settings are missing from Add New Post [closed]

When logged in as Author, the screen options do not include OceanWP settings. If logged in as Administrator, the options do include OceanWP settings. The Author needs these settings to remove such ...
0
votes
0answers
19 views

Options API: Options does not save

My Settings wont save and I dont really know why. Here is my Code: <?php class STLI_New_Settings { /** * The ID of this plugin. * * @since 1.0.0 * @access private * @var string $...
0
votes
1answer
33 views

redirect to https://my-site/wp-admin/ instead of https://my-site/wordpress/wp-admin/ after options updating

I installed my plugin for one of my clients but I got a bug. In my plugin settings page using the wordpress settings system, when I click on the submit button to activate a license key, the ...
0
votes
0answers
103 views

WP_SITEURL vs WP_HOME link output

When WP_SITEURL and WP_HOME are set to different values - for example https://example.com/wordpress and https://example.com - the output links are inconsistent. Thus, a permalink output will be ...
0
votes
0answers
19 views

Same function but different add_settings_field

I have two fields but related to each other; Is it possible to have two add_settings_field() with same function? or one add_settings_field() with multiple $id and one function? Or just should have ...
0
votes
1answer
75 views

Wordpress options page not saving

I've create an option page in Wordpress. After some hours of work I was happy that I can see my expected content on my settings page. But when I press the save button I'm getting redirected to the ...
2
votes
1answer
149 views

How to create a Page alias in WordPress

In the image you see... WordPress has alias for Pages like Home Page, Checkout Page, Privacy Policy Page and any appear beside the page you assign them. How to create this feature in WordPress? If I ...
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
1answer
150 views

Problem with Settings API: changes are not saved after submit

I'm writing a plugin "Paid Post" with some options. I made a settings page for my plugin, and it displays OK, but when I'm pressing "save changes" button, the option I have do not change, it just ...
0
votes
2answers
100 views

Optimized PHP & Wordpress settings for speed/performance?

I have a big site with several plugins that take up memory, a lot of requests to the server, etc. I've maxxed out my hosting to help account for this, but are there optimum PHP and Wordpress settings ...
0
votes
1answer
434 views

How to Fix WordPress Not Saving Settings?

How Can I Manually Fix & What is The Root Cause? The Site Language setting in Settings > General for my site, will not update. It is stuck on English (United States). I have done all the ...
2
votes
1answer
251 views

Implement a multi-value input field where the number of entries is not limited

I am developing an application (plugin) where the user needs to enter any number of number of phrases in the settings page and these will be used by the plugin. I have implemented this to capture the ...
0
votes
0answers
20 views

How to create plugin settings page for each admin user?

I have to develop a plugin where it is required that each admin user should have different settings for the plugin. Forexample, email settings should be different for each user, lets say user A filled ...
0
votes
1answer
50 views

Automate WordPress website setup with prefilled data

I'm asked to write documentation explaining how to set up a website to run exactly as the live environment does right now. The website is dependent on WPML, certain categories and menu's being ...
3
votes
1answer
101 views

Remove/unset options field from backend Settings->General?

I am trying to figure out how to remove settings I don't want my multisite admins to be able to change. In Settings->General I want to remove/hide these options (together with the text): Tagline Site ...
0
votes
1answer
14 views

Admin Custom Login loses settings on Code and Data migration

I am running a WP site on WPEngine. It includes both a staging and production server. We use a plugin called Admin Custom Login. After setting up the plugin on staging, I push the code-only (not the ...
1
vote
1answer
68 views

Update menu when saving settings

I have a settings page for my plugin in which the user can toggle a custom post type on or off. When the plugin is initialized I then check this setting to see if the custom content type should be ...
4
votes
1answer
735 views

add static page to reading settings for custom post type

I created a custom post types and I want to let the user choose the static page for the archive page. For example, under Post page. I would like to add a Projects page: [ Dropdown ] Is there a way ...
2
votes
0answers
30 views

Is there a reliable way to keep track of how long a WordPress theme has been active?

I want to keep track of how long a specific WordPress theme has been active, not just installed. The end goal being I want to display a notice after a user has created x number of posts and the theme ...
2
votes
1answer
6k views

wp-admin pages return ERR_EMPTY_RESPONSE

update-core.php, update.php, and options-general.php no longer work. index.php, profile.php, plugins.php, upload.php, etc all still seem to work I have tried deactivating every plugin and reverting ...
0
votes
0answers
36 views

How to detect if i am on plugin's settings page

Let's say, in admin, i use add_menu_page... Is there any function, which determines, if current admin screen is the settings page of that menu_age ? i.e. if($current_screen == "...
4
votes
4answers
2k views

How to display an admin notice after updating plugin settings?

I have a plugin with a setting page, and there are some action that have to be done when a certain option is saved. I am using the pre_update_option_ hook to do this. So far so good. If something goes ...
5
votes
2answers
91 views

Modular theme settings

I'm looking for advice on the best way to store a series of settings for a modular theme. To note: The settings will not be user facing (not suitable for the customiser api). Ideally the options ...
0
votes
1answer
898 views

what is the meaning of settings_fields()

Please guys , I tried a lot ro find out what's the main purpose of this function , but i didn't find what i want , i looked in the codex but seriously the description is not clear , i tried to see ...
0
votes
1answer
15 views

Manual Backup - How to save to Firefox or Chrome (instead of IE which brings up popup I can't get rid of)

It appears my question isn't in the list provided... My question pertains to doing the Export backup method and the .xml file saving to Internet Explorer which causes an automatic IE popup. (I use ...
1
vote
1answer
298 views

How to make get_theme_mod work with AJAX in the customizer preview

Is it possible to make the get_theme_mod work after refresh in the customizer preview pane when it's being called inside a template part by AJAX? I have a theme that loads the posts on scroll (...
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
640 views

Custom general settings (textarea field) don't output HTML correctly

I add my custom fields in genearal settings page. One of them using Wordpress Editor - there i insert my HTML content. I creeated it using simple snippet: add_action( 'admin_init', '...
0
votes
2answers
69 views

Update WP option by plugin

I wanted to set value of WP option (more specifically - 'admin_email') by using plugin, its option (plugin option) and update_option(). I tried using lines like below, but when plugin code contains ...
0
votes
1answer
250 views

Category URL to use same string as Post URL Permalink

I want to set up my site to have the following permalink structure: /learn/%category%/%postname% So in the permalinks section of wordpress, I set that as the custom structure. The issue is, when I ...
0
votes
1answer
57 views

Possition a Custom Post Type Tab under Settings

So i would like to ask if there is any supported Wordpress way of positioning the CPT menu tab under the settings. Thank you!
0
votes
0answers
33 views

How can I change the default image behavior?

I would like to set the images in my blog to default to the large size, and clicking on them will perform the "Media Link" option. I could set this up every time I include an image in my blog, but I'm ...
0
votes
1answer
24 views

why my wordpress dont have toolbar like, plugin, themes and other?

why my wordpress dont have toolbar like, plugin, themes and other ? thet is screenprint of my wp.
0
votes
0answers
135 views

Register setting on plugin activation

I want to register an option when my plugin is activated to be used in the settings page. My first attempt: function jpsNews_activate_plugin() { // REGISTER SETTINGS register_setting( '...
3
votes
2answers
241 views

WordPress customizer: load controls in a custom div

I have a custom div (holder for extra settings) which I need to load some specific controls from a specific section in there. I can get the controls in JavaScript but I can't generate the necessary ...
2
votes
2answers
629 views

Editor role not saving settings page for custom post type

I currently have a custom post type with a sub menu page via add_submenu_page. On this page I have a form with some basic settings such as a text editor and some radio buttons. function ...
0
votes
1answer
28 views

How can I POST or GET to the same admin page from which I am POST-ing or GET-ing

I have made a admin page linked to a Settings -> submenu_item. This page looks like this: http://movahon.dev/wp-admin/options-general.php?page=miama-google-recaptcha%2Fmiama-google-recaptcha.php On ...
0
votes
2answers
1k views

The entire wordpress theme reset to default after uploaded to live

I created a Wordpress website. Spent a couple of weeks to customized its CSS, PHP, Posts, uploading images, etc to be the how I wanted. BUT when I uploaded it to the server, all of my settings I have ...
9
votes
1answer
5k views

Please explain how Wordpress works with MySQL character set and collation at a low level

As the question title suggests, I'm looking to understand how Wordpress works with MySQL character sets and collation options. As I will show below, things don't make much sense to me... I installed ...
1
vote
0answers
56 views

i changed my wordpress address url in SETTINGS - GENRERAL - wordpress address site url. cannot login anymore

i changed my wordpress address url in SETTINGS - GENRERAL - wordpress address site url. cannot login anymore. I have tried all sorts of tutorials to get to login to my admin page with no success. ...
0
votes
1answer
33 views

Cannot save settings value

A plugin with its own settings page and a single text field is rendered. When a value is entered for the field and the form is submitted, Settings saved. is rendered. Yet a query of the database ...