The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
275 views

Settings API erases itself?

I have two forms created using Settings API, and when I save one of them the other one gets erased and vice versa. Here's the whole code so you could paste it into your functions.php file and see ...
1
vote
1answer
711 views

Securing wp-config leads to sensitive information leak on wp-settings

I read the following tutorial, which mentions moving your config file out of an HTTP-accessible folder. http://codex.wordpress.org/Hardening_WordPress#Securing_wp-config.php I did this, and it works ...
1
vote
3answers
3k views

Can't delete unwanted favicon

I have a favicon that is a remnant of a disactivated wordpress theme. I can't find the favicon file in the theme folder, or the wordpress or server root. I have added my own reference to a new ...
1
vote
1answer
98 views

Settings API - how to update multiple options manually?

I'm storing all my options using Settings API: function registerSettings() { register_setting('XX_theme_settings', 'XX_theme_settings', 'setting_validate' ); add_settings_section('theme_options', ...
1
vote
2answers
121 views

Remove Internal Style Sheet if no Value Provided?

I am using this code to add my options inside head section code works but my problem is that if no values are provided my function still echoes an empty <style type="text/css"><style> into ...
1
vote
1answer
228 views

Bulk theme settings in wordpress multisite

I have a multisite with 500+ subsites. I would like to install the same theme in all 500+ sites. Most of them requires configuration like selecting sidebar(left/right), Selecting primary menu etc. ...
1
vote
1answer
239 views

Set Wordpress settings programmatically

Is it possible to set certain settings from the theme functions file for example the setting Enable threaded (nested) comments ca I set it to allow 2 as the answer without having the user go into the ...
1
vote
1answer
375 views

Theme settings keep getting reset/erased

I bought a theme from Themeforest called Anan. I am currently hosting the site on Bluehost. Here's the problem: every few days the theme settings keep getting erased (reset) so I have to re-upload ...
1
vote
2answers
487 views

What could cause my plugin's options/settings page not to load?

I'm having an issue with one site in which my plugin is installed. The "settings" page will not load. When I click on "settings", it loads the settings page but the page is blank after the "Upgrade to ...
1
vote
2answers
66 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 ...
1
vote
1answer
92 views

Run function on settings save

I am using the Settings API for a plugin's settings page. One of the settings allows the user to change the cron job interval for the cron job created by this plugin. Therefore I'd like to run a ...
1
vote
1answer
297 views

Settings API - changing add_settings_field() output?

I'm using Settings API and wondering if there's any way of editing default output of add_settings_field() function? add_settings_field('the_field', 'bar', 'foo', 'page', 'section'); function ...
1
vote
1answer
542 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() { ...
1
vote
1answer
126 views

Plugin settings page template

When creating plug-ins for WordPress, there are times when you need to make a settings panel. Sometimes, you need more than one page, and they can be quite complicated. So far, I have been ...
1
vote
1answer
4k views

How to make WordPress use new Upload Path settings in Multisite Setup

I have a site that is setup for WordPress multisite. The main site works, but the subdomains are not functioning as I would like them to. Here are the settings for the main site: Upload Path: ...
1
vote
1answer
489 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 ...
1
vote
1answer
35 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 ...
1
vote
2answers
40 views

Custom blog settings

What is the best way to add new custom blog settings to the Wordpress general settings (or some other settings page for that matter), such that these settings are available to the theme to use? For ...
1
vote
2answers
173 views

Custom editor field displaying HTML in Visual editor

I am trying to add a custom WordPress editor field to the General Settings page in the admin. I have it working except that when you save anything with HTML it converts all the code to HTML entities ...
1
vote
1answer
41 views

Theme settings default, strange behavior before first save

I was building a theme options page with the settings API. I use an ajax call to compute some settings automatically from other pages / tabs. I noticed that all of the new settings default ("std") ...
1
vote
1answer
21 views

Implementing action correctly

Hi I am implementing a core plugin plus add ons. There is a settings page and I would like to hook some validation routines for the addon plugin into the core plugin's validation function. However ...
1
vote
1answer
1k views

How to create a drop down list with pages to a themes options page?

I'm building a themes options page using settings API. Everything is ok, but i now i want to create a drop down list populated with pages and i don't know how to! For example, i have this piece of ...
1
vote
2answers
4k views

General Setting Allow Multiple Email Notification

WordPress Version: WordPress 3.2.1 Settings -> General http://www.hopekl.org/wp-admin/options-general.php I would like to have multiple email address in the Email Address textbox. I tried ...
1
vote
2answers
277 views

Possible to add another setting to 'Front page displays' setting for Custom Post Type

Let me set the scene: I have a CPT that will work on a multi-site installation and some of the sites will be in a different language. For example my CPT is Case Studies I would use a URL structure ...
1
vote
1answer
401 views

Can't save checkbox option

I know this is a mess, but can someone tell me why I can't save to checkbox option in this plugin? /* Runs when plugin is activated */ register_activation_hook(__FILE__,'vigtigt_besked_install'); ...
1
vote
4answers
996 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
293 views

Wordpress slugs and 404 handling takes preference over folders in site root?

I have wordpress installed and permalink structure set to /%postname%/ In addition to WordPress folders, I also have a public_html/beta folder where I wanted to copy the same site and test some ...
1
vote
1answer
276 views

why is unregister_setting() undefined?

trying to call unregister_setting('general','users_can_register'); so as to removed the option for allowing or dissallowing user registration (it is required in the theme, so it is set ...
1
vote
2answers
106 views

What changes we need to make to a theme so it can be installed as a MU Theme?

I downloaded the free Wootheme Irrestible and if installed on a stand alone Wordpress, works very well. Now, if we enable Multiple Sites on 3.x and set this theme to be the theme of a new site it ...
1
vote
1answer
72 views

Can I use the different settings sections over different pages using the save options group?

I registered one options group with few different options sections. Each section is meant for different page. register_setting( // ...
1
vote
0answers
117 views

How to store options in an array

I am creating a custom table to display selected options for a page called "Testimonials". The user will enter their options on a "manage testimonial settings" page, and then those options will ...
1
vote
0answers
127 views

BuddyPress | How to merge the “setting” & “profile” pages into one page?

In BuddyPress I would like to merge the register.php and setting.php files into one "register.php". Is that possible? I don't want to change my Name, City and Address then go to the setting page to ...
1
vote
2answers
114 views

Static Front Page problem

My theme uses the front-page.php file to display a number of items on the front page including a slideshow and some featured items. I have also designed it so the static front page as set in the ...
1
vote
1answer
96 views

Woo Framework: woo_cat_featured not populating

In framework settings: $options[ 'featured_cat' ] = array( "name" => "Featured Category", "desc" => "Featured Posts will display in the main rotator on the homepage.", ...
1
vote
2answers
616 views

Custom settings disappear during database migration?

I've noticed a problem that pops up occasionally when moving a WP install from one place to another (usually the same server.) I copy all the files to their new location, get a mysql dump, update all ...
1
vote
1answer
26 views

Settings API with custom post type menu limitation

I've created a custom post type menu with register_post_type. I want to add a settings sub-menu with lots of options, including extra "Add option to a select list" button. The problem: when using ...
0
votes
2answers
55 views

Testing for addon plugin activated

I am creating a plugin which will also have a few addons. I am adding settings tabs for the addons, but I want to make a conditional check in the main plugin to prevent those tabs from showing if the ...
0
votes
3answers
2k views

Can't save options

I created theme options page using Settings API, everything works fine but I can't save options. I tried to figure it out where I missed something but I failed. Any idea what can cause this problem? ...
0
votes
1answer
232 views

Settings API - how to update options manually?

I'm storing all my options using Settings API: function registerSettings() { register_setting('XX_theme_settings', 'XX_theme_settings', 'setting_validate' ); add_settings_section('theme_options', ...
0
votes
3answers
106 views

In Settings>>General I am missing some fields

I am new to Wordpress and downloaded the 3.5.1 version from my hosting provider. I want to add www in front of my domain and I read from many sources how to do this. Go to settings then general and ...
0
votes
4answers
809 views

No option “I would like my site to be private, visible only to users I choose” in Privacy Settings

I am running WordPress 3.3.2 self-hosted. I used to see the option "I would like my site to be private, visible only to users I choose" under Privacy Settings but I no longer see this option. Instead, ...
0
votes
1answer
107 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
39 views

How to recover WordPress Adress(URL)

I installed WordPress in localhost. I changed the WordPress Address from the general settings. After that none of the previous pages appears. Instead, a "Page Not Found" error page is appearing. I ...
0
votes
2answers
1k views

Where have the Privacy Settings gone in WordPress 3.5?

I moved a WordPress site to another server and everything is working well, minus the fact that I can't seem to change the settings in Privacy. When I click on "allow search engines to index this ...
0
votes
2answers
49 views

Is there any other place - besides a theme, a plugin, or a mu-plugin - that an option page might conceivably be used?

I'm creating a helper class for simplifying the creation of an option page in admin that could conceivably be used in a theme, a plugin, or a mu-plugin. I'm trying to make the class as easy to ...
0
votes
1answer
120 views

Filtering a Database Query

In a WP_List_Table example I'm using, I am seeing how to make a general query to the wp_options table in the Wordpress database. For example, $query = "SELECT * FROM $wpdb->options"; I also see ...
0
votes
1answer
185 views

Wordpress custom permalinks not working on OS X localhost

When changing premalinks, none of the pages and links are not working except home page :( Result are shown below. Thanks in advance.
0
votes
1answer
333 views

Plugin options will not save in database

I'm not sure what's happening here, since this has worked in another plugin I've created. I'm simply trying to store data in the options table. Here is the code I'm using: function on_myplugin_start ...
0
votes
3answers
526 views

Override Current Theme Setting in wp_config.php

I am looking for a way to override the currently selected theme, preferably from within the wp_config.php file. I know you can override some wp_options settings in the config like define('WP_HOME', ...
0
votes
1answer
475 views

Settings API validation callback

I finally managed to create working validation callback for Settings API with big help of Chip Bennet, there's only one glitch that I'm not sure how to fix. Here's the foreach loop from my validation ...