Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

2
votes
1answer
31 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
35 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
78 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
12 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 ...
0
votes
0answers
38 views

ERROR: options page not found, when creating options page for Custom post type

Trying to add settings page for my custom post type, but getting that "ERROR: options page not found." message when trying to save the test setting. Here is what I use in the functions.php add_action(...
0
votes
0answers
19 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 ...
0
votes
0answers
16 views

Formatting option missing in Writing

I have two systems exactly set up the same way, the difference only being that one is local and the other is not. However, my local version is not showing an option under Settings -> Writing, which my ...
2
votes
1answer
242 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
28 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
1k 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
24 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 == "...
3
votes
3answers
476 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
87 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
350 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
14 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 ...
0
votes
0answers
139 views

Create shortcode in admin settings page

I am currently developing a plugin for my giftcard, and i am very new to WP. I have the following codes and i want to create an end user form using shortcodes and with this admin plugin, admin should ...
0
votes
0answers
425 views

How to change default Language of wordpress site not dashboard

Current Site language is US English but want to change into Spanish changing language in setting>general>language changes the language of dashboard and website language remains same but what ...
0
votes
0answers
23 views

Settings page in Network sites

I´m trying to make my plugin work in Network (Multi-site) but my settings page is not showing up in network, what am i doing wrong ? class WPSUPADMIN { function __construct() { // ...
1
vote
1answer
205 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
0answers
31 views

add_filter() does not work if the callback is in another file in the trait

When I try to use this code: private function admin_init() { // for admin panel add_action( 'admin_menu', 'WP_Page_Protected_Access::add_admin_menu' ); // add ...
0
votes
0answers
24 views

Add new settings to the page creation screen

I would like to know how to add a new set of options to the page creation screen. I know about the settings API but that creates a whole new page for that set of settings. Is there a way I can archive ...
0
votes
0answers
279 views

Why WP customizer postMessage transport is not working?

I am MS Shohan and am new to WordPress development. I tried to set postMessage transport of blogname and blogdescription settings but I don't know why it is not working. Can you please find out the ...
0
votes
1answer
20 views

Settings API and 'type' => 'font'

array( 'name' => 'textarea', 'label' => __( 'Textarea Input', 'wedevs' ), 'desc' => __( 'Textarea description', 'wedevs' ), 'placeholder' => __( '...
0
votes
2answers
331 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
58 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
0answers
35 views

Emoticons Not Working and Missing Emoticon Option on “Writing Settings” Page

I've been trying to solve this problem for a while now but to no joy. I noticed a couple of months ago, all of my emoticons were replaced with small squares. I went to the "Writing Settings" page ...
0
votes
1answer
198 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
0answers
62 views

register_setting func is not adding values to the database

I am newbie in wordpress, I am trying to create a theme. I added the settings page menu and I need to add an option and retrieve it in the homepage. function theme_settings_page() { <form ...
0
votes
0answers
9 views

I created a WordPress using xampp and things seem to be fine EXCEPT not all of the information is there

For example, in the writing settings, everything that's supposed to be under "Default Post Format" is not showing up (except the Save Changes). And say in the General Settings, there is no "New User ...
0
votes
1answer
33 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
27 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
23 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
79 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
172 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 ...
1
vote
2answers
343 views

Cheating, are we? Editor role not saving settings page for custom post type

I currently have a custom post type with a sub menu page (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
27 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
371 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 ...
8
votes
1answer
3k 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 ...
0
votes
0answers
22 views

Why was author able to change generals settings

I have a 4.7.4 (auto upgraded) WP installation on a shared hosting server. I believe it was auto-installed via Mojo Marketplace integration offered by my hosting provider. I have ~100 users, all of ...
1
vote
0answers
30 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
30 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 ...
1
vote
1answer
264 views

How to eliminate permalink prefix in Wordpress Multisite

I have installed the multisite plugin for Wordpress; I have one website in English, and the other in French. However, when I go to Settings -> Permalinks, my English website shows this: I don't ...
1
vote
1answer
44 views

Changing the language in Site Language does nothing

Wordpress should always allow me to change the language, anytime. However, when I try to change the language to Greek, the language stays English, as it is now. How can I overcome that?
1
vote
1answer
67 views

Prevent invalid or empty values from being saved to the database and retain the form field values upon error

I'm using the Settings API to save the settings of my plugin. I want a positive integer value from the settings field. register_setting( $option_group, $option_name . '_number', '...
0
votes
0answers
186 views

Why isn't my preview button working correctly?

Im getting a strange issue with a clients wordpress site, for some reason they cant preview the page, when they click the preview button it does nothing they have to right click open in new tab to ...
0
votes
0answers
36 views

User specific settings, limited by role

I generally know how create plugin settings, and limit a users access to these plugin's settings based on their role or capability. However in this case, I want the user to be able to create settings ...
0
votes
2answers
66 views

Multisite Network menu links not updating

I recently made a copy of my live Multisite network and moved it to a domain for testing. For some reason the links in the "Network Admin" menu are not updating to the new testing domain. These links ...
0
votes
0answers
180 views

I cannot change anything in my wordpress database from within wordpress?

So I have set up my database name, user and password in c-panel; these correlate with my wp-config file. When I change (for example) my email from settings->general setting from wordpress admin, it ...
0
votes
1answer
440 views

Site Address and WordPress Address settings when using a load balancer

I am installing my wordpress forum in two identical servers: InstanceA (public dns: instancea.com) InstanceB (public dns: instanceb.com) I would like to have both of these servers sit behind a load ...