plugin get value from admin panel page

If you want to add an settings page, (or add options to and existing settings page) please use the settings api: register_setting add_settings_section 1. Register your settings and add a section: add_action(‘admin_init’, ‘plugin_admin_init’); function plugin_admin_init(){ register_setting( ‘wpse51578_options_group’, ‘my_option_field_name’, ‘wpse51578_validation_callback’ ); add_settings_section(‘wpse51578_main_id’, ‘My Main Settings’, ‘wpse51578_main_settings_cb’, ‘wpse51578_option_page’); } The ‘my_option_field_name’ int the register_settings is the name … Read more

How to display a category list in a mediawiki like way?

You can play with Walker to customize output into being split by letters. From there it is matter of CSS to achieve column formatting. Quick take on Walker: class Walker_Alphabetized_Category extends Walker_Category { var $letter=””; function start_el(&$output, $category, $depth, $args) { $current_letter = strtoupper(substr($category->name,0,1)); if( empty($this->letter) ) { $this->letter = $current_letter; $output .= “<li>{$current_letter}<ul>”; } … Read more

Translating wordpress plugin

I´m using this code to get translated my themes: add_action(‘after_setup_theme’, ‘my_theme_setup’); function my_theme_setup(){ load_theme_textdomain(‘lc_realty’, get_template_directory() . ‘/languages’); } the files are named ru_RU.mo and ru_RU.po I have no problems with this code on versions 3.3.1 to 3.8.3 I will upgrade to 4.0 soon son I hope this continue working well. Also I have this code … Read more