Tag Info

New answers tagged

1

The MarkUp to produce tabs in the admin UI is the following: <h2 class="nav-tab-wrapper"> <a href="#" class="nav-tab">Tab #1</a> <a href="#" class="nav-tab nav-tab-active">Tab #2</a> <a href="#" class="nav-tab">Tab #3</a> </h2> Now, when you are requesting an admin page, you can use any query ...


0

So because I couldn't find an out of the box way, I created this. Don't forget to enqueue the jquery-ui-tabs script - /** Replace the call to 'do_settings_sections()' with a call to this function */ function do_settings_sections_tabs($page){ global $wp_settings_sections, $wp_settings_fields; if(!isset($wp_settings_sections[$page])) : ...


0

Well I dug into the function I wrote a bit more and realize the flexibility of the customization I had. So I was able to achieve the above by writing the php this way: if (!function_exists('pagination')){ function pagination($pages = '', $range = 2){ $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = ...


2

I register custom post type on init action and the validate which I'm writing about is set to register_setting inside admin_init action. This is the key to your issue. You're registering the custom post type, and presumably you're setting up the rewrite rules in that registration. When you call flush_rewrite_rules(), the rules are rebuilt right then, ...



Top 50 recent answers are included