The tag has no wiki summary.

learn more… | top users | synonyms

11
votes
3answers
1k views

Multisite: How to add Custom Blog Options to new blog setup form?

Seems like a simple enough requirement, but I'm struggling: I want to add an option field to the "Add New Site" -- a simple text option is fine. How do I do this?? I need to save this custom blog ...
3
votes
1answer
856 views

Best practices for a Style/CSS based theme options page?

I would like to create a theme options page based only on changing the site wide CSS styling. For instance body/container background colors, font-sizes, font colors, etc. I have accomplished this by ...
5
votes
2answers
419 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 ...
1
vote
1answer
396 views

Enqueue Javascript Correctly for 3.5

I am trying to create tabs for admin settings page in wp, but I think I'm doing it wrong. The example below shows how I did it but I don't know how to change this to use it correctly with no conflict ...
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 ...
6
votes
2answers
2k views

How to display admin error notice if settings saved succesfully?

Title sounds counter-intuitive but bear with me. :) I have options page, made with Settings API. When user enters invalid data I want to display error notice with add_settings_error() call. But! To ...
9
votes
3answers
5k views

How to get WordPress Time Zone setting?

Can someone tell me how to get the time zone that is set in the WordPress Admin? For example, if the blog is set to Eastern time, I need this exact string to print out: US/Eastern This is for a ...
7
votes
2answers
752 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 ...
2
votes
2answers
190 views

Need help understanding/coding with Settings API

So I did something like below, but I get just (I am expecting a Facebook textbox?) I hope its not too messy. I am new to Settings API ... add_action('admin_init', function() { ...
2
votes
3answers
633 views

Multisite: setting theme and options when a new blog is created

When a new blog is created in a WP Multisite instance I want to be able to set the default theme and configuration options create 2 menus (main and secondary) and associate them with the 2 slots ...
2
votes
3answers
2k views

Where to hook register_settings for Settings API when also want to update options outside of Settings API?

The Settings API is a convenient way to add administrative options. Tutorials on the settings API hook register_setting to admin_init. But what if you also want to programmatically change the same ...
2
votes
4answers
522 views

How to add a post from a custom post type as the static page?

I have created a custom post type and added some custom metaboxes to the page edit screen. My objective was to provide specific metaboxes which a user can edit which in turn would allow a user to ...
1
vote
1answer
218 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 ...
0
votes
2answers
950 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 ...