-2
votes
0answers
14 views

404 page if I post a value containing url value

I am working on a plugin settings page and get a 404 page if I post a value containing url value like below. <input type="hidden" name="<?php echo $profile[ 'id' ]; ?>" value="<?php echo ...
0
votes
0answers
18 views

Can't save plugin settings

I am trying to change some settings of Breadcrumb NavXT plugin. After pushing the button "save" the settings seem to be saved. However, if I go to any other page of admin and then come back to the ...
0
votes
1answer
21 views

Changing plugin options from theme functions file?

I am making a starting-point Wordpress theme that will be used on dev projects. In this theme, I am automating common plugin installs that are used on every project. I have been able to automate ...
0
votes
1answer
15 views

Validating values using Settings API?

I'm using the Settings API to create options for plugin. Do I need to validate the input values for the security (for example stripslashes etc)? (I could not find that part in most of the tutorials). ...
0
votes
1answer
18 views

Adding a theme option to the admin that lets me turn on/off a javascript file

I want to add a theme option to the Wordpress admin so that I don't need to commit code every time I need to "activate" (or deactivate by commenting out) an Optimizely javascript snippet I only want ...
0
votes
1answer
50 views

How to make a textarea accept javascript in my settings apge?

I'm building a simple plugin that will allow us to add code to our site header by defining it on our settings page. However I haven't been able to make it allow scripts. This is my current code: ...
0
votes
1answer
45 views

Can deactivating a plugin sometimes “reset” settings within that plugin?

I need to deactivate a plugin on a client's website to check whether it is causing a certain issue or not. But I'm not 100% sure that after deactivating this plugin, all its settings will necessarily ...
1
vote
2answers
105 views

Set the active Navigation Menu from a plugin

Is there a way to set the following option from a WordPress plugin, if you know the name of the menu you want to set: My developer says it's not possible, but I am sure on of you gurus knows a way ...
0
votes
1answer
49 views

While Using Static Pages, How Can I Get /blog into the URL of Each Post?

I have Wordpress installed on the root of my website. It is using a static homepage and posts page. As it stands, each post will look like this example.com/blogpostname. I don't want to use category ...
1
vote
1answer
79 views

WooCommerce “Save Changes” button appears inside custom settings

I am writing WooCommerce plugin which requires custom settings page. I have decided to extend general WooCommerce settings by adding new custom tab. I have managed how to do it in WooCommerce way and ...
0
votes
1answer
105 views

Allowed memory size exhausted problem

This seems to be a weird problem. The exact error is this: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 337608 bytes) in ... It only hangs the dashboard. The ...
0
votes
0answers
181 views

Error: Options page not found when saving my Plugin-Settings

after saving my options for my plugin I am getting the options page not found error. After some research, I found, that I may have forgotten to register my option or registered the wrong one. I ...
0
votes
0answers
31 views

Permalink Settings for Custom Post Type

I have a plugin that creates a custom post type. I am able to control the rewite rules and have also created a plugin settings for the archive url and taxonomy urls slugs. However if a user enter ...
0
votes
1answer
83 views

How do you add a settings page to another menu?

I created a settings page that's being displayed in the options menu like this: add_options_page( 'ATB Event Options', 'ATB Event Options', 'manage_options', 'atb-event-options', ...
0
votes
0answers
32 views

homepage olderposts link showing page not found

I am using WordPress 3.5.1 version, now I had a problem with olderposts link present at bottom of homepage. it is ok with rest of the category pages. I am working on this problem since last two days, ...
0
votes
1answer
78 views

Building a simple “settings” plugin to change textstrings on the home page

I am trying to build a little settings area to change the strings of some text (image urls & links) on the homepage via the dashboard. I have found a useful tutorial which provides the plugin ...
0
votes
1answer
133 views

Why is the Settings API is not saving my array of options

I am writing a set of classes to easily create options pages accessible via submenus of the standard WordPress menus and a way to easily create options for said menus. The way I am wiring it is via a ...
0
votes
1answer
299 views

Change the style of h1, h2, only in post entry

I would like to change the style of h1, h2, ... ONLY in post entry (when writing a new post). Default settings is just too big and has a different format, because I use Google fonts. I was using ...
0
votes
1answer
117 views

WP e-commerce sales-view

I'm helping a client out who's running Wordpress E-commerce 3.8.3 on WP 3.2.1 In the "sales" view, (where it shows all orders), you can see ID Date/Time Name Amount Details Status (Delete) and ...
0
votes
4answers
648 views

Can't get plugin settings page to save data

have a simple plugin that inserts text (a Google ad) partway through the content of a single post. I'm trying to create a settings page that will let users change the ad code, and change after which ...
3
votes
1answer
212 views

Inherit plugin settings to new site in Multisite

I use the Breadcrumb NavXT plugin for a WP Multisite. I activated the plugin for all sites so I can use it throughout my network. My problem is that every time I add a new site I have to change the ...
0
votes
1answer
26 views

Localise settings section headline

Assuming i've got a bunch of setting sections. I add these sections to my plugin page in the following way. $sections = array('notifcations', 'updates'); foreach ($sections as $section) { ...
0
votes
1answer
95 views

Need to add/remove group of options and display them as rows

I am creating a plugin which has 5 textbox for options. What I need to do is to treat these 5 options as 1 item, and being able to add more items. I've always worked with static hardcoded options for ...
1
vote
1answer
587 views

How can I add an options page for my class based plugin?

I'm trying to use the new Settings API with a class based plugin to add a settings page. This is the code I have so far: class simple_sample_plugin{ function simple_sample_plugin() { ...
2
votes
2answers
2k views

How should I use register_setting, add_settings_section, & add_settings_field in my plugin's options page?

I'm working on a settings section for my plugin, and after reading over Wordpress's documentation which is in ROGUH DRAFT status, and also the Creating Options Pages - which is also in "transition", ...
0
votes
1answer
200 views

How to add a custom form to a plugin's setting page

I have a settings page for a plugin which I created using this function: function vsp_create_menu() { add_menu_page( 'Visitors Statistics', 'Visitors Statistics', 'manage_options', ...
2
votes
4answers
1k views

Duplicate settings of master blog to slave blogs in WP multi-site installation

Is there any smart way to set a site (blog) as a master, which settings are replicated to the rest of the sites in the network? There are plugins like this one: YD Network-wide WPML that attempt to ...
1
vote
1answer
119 views

How to tell if plugin has been network activated

I have the following lines of code that add the settings link and setup for my plugin: add_action('admin_menu', array(&$this, 'admin_settings_menu')); // Add menu to options ...
17
votes
2answers
2k views

'Global' settings page for multisite plugin

I'm working on a plugin that will be installed in a multisite instance. How do I create a single settings page that is visible at the "Network admin" level only - most of the guides i've seen relate ...
9
votes
2answers
2k views

How to add field for new site-wide option on Network Settings screen?

I'm working on a plugin, and part of it involves setting an option value that applies to all sites in a WordPress network. I know about the add_site_option and get_site_option functions that let you ...
1
vote
1answer
460 views

Network-Wide Plugin Settings Management

I'm using Wordpress 3.1.2, and have three blogs in a wordpress network. I would like to change some settings for a specific plugin, but have the changes applied to all the blogs on the network. I ...
0
votes
1answer
552 views

Using call_user_func() within add_settings_section() within a Class

I am trying to add_settings_section() by supplying a callback with parameter as follows: class warpress_progression_plugin { function warpress_progression_plugin() { $this->__construct(); ...
1
vote
1answer
520 views

problems with wordpress and php version 5.3.3-1

I recently installed a server with new php version - 5.3.3-1 and when I imported wordpress site and database, there were some problems with plugin settings - some of them were reset. In pagenavi ...
8
votes
2answers
287 views

Plugin for editing options on multisite?

does anyone know of a plugin for mass editing of settings on a multisite installation? Something like Plugin Commander for Settings?
3
votes
1answer
828 views

Is there a hook attached to general settings save?

I want to add a field to the general settings page, but I can not save the field because I can't find a hook for the pages save. Any ideas?
6
votes
2answers
515 views

Modifying a JS file with data from plugin settings

I have a plugin that, among other things, has a javascript file that requires a few user specific settings. What would be the best way to get those settings into javascript from the plugin's settings ...