The settings tag has no wiki summary.
0
votes
2answers
60 views
Best place to store company address
Ok I'm creating a site for a company, this company will have multiple users. In the footer I am trying to include the company name, phone and address but not as a widget. I need to store the ...
4
votes
2answers
835 views
Add_settings_field() parameterizing callback?
I'm trying to create a rather large and extensive settings page with various options of very similar type.
Since there will be about 20 different fields, and the differences between most of those ...
2
votes
1answer
99 views
WP Multisite: Inherit plugin settings to new site
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 ...
8
votes
2answers
1k views
How to pass variable to add_settings_section() callback?
I am attempting to automate, as much as possible, the Settings API function calls for each setting in a Plugin. Looping through the options array, and outputting add_settings_section() and ...
4
votes
2answers
238 views
How To Provide Sub-Blogs Their Own Domain Names?
I ran a search that did not yield that many results.
Is it possible, and how can each sub-blog of a multi-site installation be given its own domain name?
1
vote
0answers
86 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 ...
0
votes
1answer
22 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
78 views
How to add a Reset to Defaults button with Settings API?
How can I add a reset button when using the Settings API?
I've have something like this that's storing my defaults:
$slider_options = get_option( 'nextslider_options' );
/* Define the array of ...
0
votes
1answer
145 views
Using wp_parse_args to set up Plugin Default Settings
So I want to have defaults set up for each of my plugins settings, and I'm using wp_parse_args to do so which I believe is the correct way, but I'm hitting a roadblock.
Here's my code at the moment:
...
1
vote
1answer
455 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()
{
...
0
votes
1answer
82 views
Images not being generated at correct size
I have my WordPress Media settings set like so. Based on these settings no generated large image should exceed the width of 540px.
I embed an image in a post like so. I choose "Large" as a image ...
1
vote
3answers
88 views
Putting my site live
Can anyone help?
I've been building a wordpress site in a sub directory of an umbrella 'development domain' if you will, and am ready to go live with the site.
It's a single install of wordpress.
...
0
votes
1answer
48 views
image URL changed in wordpress
I have moved a theme from local to live and the image URL's are showing my live localhost default url instead of the current live url.
Any idea's on why and how to fix this?
The site is live at ...
0
votes
2answers
968 views
Two “.htaccess” Files Located in Different Directories?
I found two ".htaccess" files, one is located in '/httpdocs/.htaccess', another one is located in '/httpdocs/wordpress/.htaccess', the content is different, is it normal?
The Wordpress was installed ...
1
vote
2answers
216 views
Good way to store content and settings for an RSS plugin
I am building an RSS reader plugin and I'd like some advice on how to store the data and settings for this plugin.
The idea is to be able to enter a set of feed sources and associate each one of ...
0
votes
1answer
80 views
is it possible to force wordpress to always save thumbnails as 'jpg' not 'png'
I cant see any settings and cant see much in the php api docs regarding this?
for instance if the original file upload is a png wordpress converts to jpg
0
votes
1answer
59 views
Static Page redirects to Frontpage
There is a static page named pcmuskel.de/ratgeber. Trying to access this URL wordpress redirects me to the frontpage.
I had this page set up as frontpage before but it didn't work. The frontpage ...
0
votes
1answer
171 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 ...
-1
votes
1answer
181 views
Creating your own options-general.php page
I wanted to develop a duplicate General Settings Page instead of the built in one and all the settings on the built-in General Settings Page will also be displayed on the new General Settings Page.. ...
0
votes
1answer
693 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 ...
0
votes
3answers
225 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', ...
4
votes
2answers
237 views
Blog Settings import/export in Wordpress Network environment
I can't use PHPMyAdmin to export/import my blogs from one server to an other because I'm using Wordpress Network.
Export/import works pretty well for Posts, custom posts types and their media, but ...
3
votes
1answer
553 views
How to pass arguments from add_settings_field() to the callback function?
I have a function like this:
add_settings_field( 'contact_phone', 'Contact Phone', 'settings_callback', 'general');
That works. It calls settings_callback. Cool. The problem I have with this is: ...
0
votes
1answer
149 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
1answer
198 views
How can I increase the post count for custom post types only?
I have the page count set to the default 10 in my reading settings menu.
However, I use my template archive.php file for all post types, including posts and books
How can I change the loop so that ...
0
votes
4answers
436 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, ...
1
vote
1answer
272 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 ...
0
votes
1answer
331 views
Saving multiple fields as array
I'm adding a settings section to a theme that will allow the user to enter testimonials which will be randomly displayed on the site. Each testimonial has 2 fields, author and testimonial, I've ...
0
votes
1answer
66 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
4answers
517 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 ...
5
votes
3answers
5k views
How to get the Date Format and Time Format settings for use in my template?
This is a strange question, but I want to know how I can access the Date and Time settings
Admin > Settings > General > Date Format
Admin > Settings > General > Time Format
I ...
1
vote
2answers
103 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 ...
3
votes
1answer
359 views
Settings API - save an array of options as one setting (array_push?)
1. Basic settings API callback.
Using Settings API my $sanitize_callback validating function looks like:
(...)
if($type == "foo") {
$valid_input[$id] = $option[$id];
}
else ...
0
votes
1answer
171 views
Tabbed theme options query about add_settings_section callback function
I have been building a tabbed option page based on some tutorials I found, using the settings API. Here is the code http://pastebin.com/bbSnhFP5 . It's all actually working fine for me but it's not ...
0
votes
2answers
224 views
formatting horizontal and vertical images in Settings?
I have several custom media sizes we always use.
vertical: 95x117, 130x160
horizontal: 440x304, 220x152
home: 260x160
Is there anyway to set the thumbnail, medium and large to vertical parameters ...
0
votes
1answer
336 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 ...
1
vote
1answer
621 views
Add an extra field to the navigation menu box?
Goal:
I like to use a subtitle in the navigation bar.
The most logic location, in my opinion, would be Appearance > Menu and add a field below navigation label called subtitle. So the end user can ...
3
votes
1answer
643 views
Settings API - easiest way of validating checkboxes?
I'm using Settings API and I can't get checkboxes to work, if they're set to "false" they're not even being $_POST and that's the point.
Stephen Harris & Chip Bennett explained it, but I believe ...
3
votes
2answers
967 views
Moving WordPress.com theme and widget settings to self-hosted site?
Possible Duplicate:
Migrating from WordPress.com to self-hosted site and autoforward visitors?
How can I move theme and plugin (widget) settings from a WordPress.com site to a self-hosted ...
0
votes
1answer
178 views
Add an option to a Child theme of Twenty Eleven
I developed a child theme of Twenty Eleven. I need additional theme options, so i added a theme-options.php file inside my child theme's folder.
However, it appears the option page is still the 2011 ...
0
votes
1answer
324 views
How to add a new variable to blog creation form?
I'm trying to add a new INPUT field to the blog creation form on Buddypress. Adding the front-end element is the easy part. I'm having some hard time trying to save it.
The variable is a string, and ...
1
vote
1answer
170 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
219 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 ...
4
votes
1answer
462 views
Settings API - creating reusable form elements?
I have a set of settings fields:
(...)
add_settings_field( 'Option1', 'Option 1', 'textarea', 'page1', 'plugin_options');
add_settings_field( 'Option2', 'Option 2', 'textarea', 'page1', ...
1
vote
1answer
163 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 ...
0
votes
1answer
110 views
Importing WP settings to another host
I am doing development and testing of a WordPress site on my local machine and have tweaked the WP settings accordingly using the GUI.
Installation of WP on my host is easy however, I do not want to ...
0
votes
1answer
170 views
Double slash in upload URLs
Wordpress is automatically adding a trailing slash to my custom upload folder in Settings ยป Media. This is causing upload URLs (for example, for images uploaded through the Media Uploader) to get a ...
1
vote
1answer
3k 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: ...
8
votes
2answers
765 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 ...
0
votes
1answer
941 views
Changing max number of blog posts per page doesn't work
WP 3.2.1
Changing the max number of posts to show on each page via Settings->Reading isn't working. Could this reported bug be the culprit?