How should one implement add_settings_error on custom menu pages?

The Professional WordPress Plugin Development book explains in detail how to properly use the Settings API, and it also demonstrates how to add Menus and Submenus, but unfortunately it doesn’t provide any joined-up examples of this. Whilst I’ve managed to get most of it working, I can’t figure out how to properly implement add_settings_error on … Read more

WordPress Settings API, Implementing Tabs On Custom Menu Page

I’ve been following the WordPress Settings API tutorial series of this guy: http://wp.tutsplus.com/tutorials/theme-development/the-complete-guide-to-the-wordpress-settings-api-part-1/ So far, I’ve been successful at doing the basic thing. Now, when implementing tab, I’m facing problem. Problem 1: The Tabs are not working. All the fields are being displayed on both the tabs. Section 1, should be displayed on Tab One … Read more

How can I save a multiple select array with the settings API for a plug-in options page?

I’m thinking this may be more of a problem with my PHP rather than my use of the settings API, but I can’t seem to get WordPress to save an array of data for a multi-select box. The multi-select box corresponds to a custom meta field, and the select options are the custom post types … Read more

Custom Post Type Settings page, choose page to display archive

So, I followed the accepted answer of this post Possible to add another setting to ‘Front page displays’ setting for Custom Post Type but didn’t entirely work, had to compare against the accepted answer in this post. Can’t output do_settings_sections . Can’t understand why Now, it actually works using the following code //Add settings to … Read more