Shorter admin url for options page

You mean, wp-admin/admin.php?page=options-page-slug? But yes, you can use the rewrite API: add_action( ‘init’, function () { // The following adds the rule into the database. add_rewrite_rule( ‘wp-admin/options-page-slug(/|$)’, ‘wp-admin/admin.php?page=options-page-slug’, ‘top’ ); } ); Or alternatively, just add this before the WordPress rules in your .htaccess file: RewriteRule ^wp-admin/options-page-slug(/|$) /wp-admin/admin.php?page=options-page-slug [QSA,L]

How to add drag and drop functionalities to a div inside option panel

3 steps: php <?php wp_enqueue_script( ‘jquery-ui-sortable’); html <div class=”metabox-holder”> <div class=”postbox-container”> <div id=”my_div” class=”meta-box-sortables ui-sortable”> <div class=”postbox” id=”el1″> <h3 class=”hndle”><span>title2</span></h3> <div class=”inside”>content1</div> </div> […elements…] <div class=”postbox” id=”el20″> <h3 class=”hndle”><span>title20</span></h3> <div class=”inside”>content1</div> </div> </div> </div> javascript <script type=”text/javascript”> jQuery(document).ready(function(){ jQuery(‘#my_div’).sortable(); });

My title won’t update

It looks like you can’t update your low accept rate either. Anyways, have you tried checking your theme’s header.php file? What is the value between the title tags? Are you using any third party plugins for SEO like WordPress SEO by Yoast? Try adding this between the title tags: <?php wp_title(“”,true); ?> You will also … Read more

Display and hide content using checkbox in Options Framework Theme

‘true’ should be ‘1’: $options[] = array( ‘name’ => __(‘Input Checkbox Name’, ‘options_framework_theme’), ‘desc’ => __(‘Check to display.’), ‘id’ => ‘example_checkbox_2’, ‘std’ => ‘1’, ‘type’ => ‘checkbox’ ); and: <?php if ( 1 == of_get_option(‘example_checkbox2’) ) { ?> <p>checked</p> <?php } else { ?> <p>unchecked</p> <?php } ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)