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(); });

Removing the first 8-10 letters from a post?

This is a new query loop that I use that shows the latest ten post titles/permalinks in the category mycategoryname and strips the first 15 characters from all of the titles. <?php $my_query = new WP_Query(‘category_name=mycategoryname&showposts=10’); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <a href=”https://wordpress.stackexchange.com/questions/14120/<?php the_permalink() ?>” title=”Permanent Link to: <?php the_title_attribute(); ?>”> <?php $mytitle … Read more

PHP in Edit Post link

The easiest way might be to use get_edit_post_link() (Codex ref), which returns just the link, allowing you to use it however you need, according to your purposes.

HTML table attributes ignored

Remove the border=”1″ attribute but leave the cellspacing. Then go into styles.css and either add your CSS selectors or modify the existing selectors. If your table is within the id=”content” block, the styling is being affected by the existing selectors. The ones you will want to adjust are: #content table { border: 1px solid #e7e7e7; … Read more