Admin Column Text Positioning

The Problem If you inspect the column (i.e. the “File Type” column), you’d see something like this markup/HTML: <th scope=”col” id=”0″ class=”manage-column column-0 num”>File Type</th> and this for a td element in that column: <td class=”0 column-0″ data-colname=”File Type”>text/csv</td> So the problem, as you can see in the id and class attributes, is the column’s … Read more

Adminstering Large Number of WordPress Sites

Well it depends on how/where they are hosted. If if they are hosted on different servers or the same I would still use the command line and a script file. If they all have different usernames/passwords you going to have to write a lot. Pre-planning will save you a ton of time in maintenance. First … Read more

Any way to inherit methods from both my plugin class and WP_List_Class?

This is a common design pattern, and I would have solved it in the same way you did. Let My_WP_List_Class extend WP_List_Class, and pass a “configuration” object to it. You could even make the relation more explicit by defining an interface your configuration object must adhere to: interface My_WP_List_Configuration { public function get_name(); public function … Read more

Using WPAlchemy metabox values in another metabox

Ok, I finally managed to solve that by myself. It is possible thanks to : Create the first field : <?php while($mb->have_fields_and_multi(‘types’)): $mb->the_group_open(); $mb->the_field(‘type’); ?> <input type=”text” id=”<?php $mb->the_name(); ?>” name=”<?php $mb->the_name(); ?>” value=”<?php $mb->the_value(); ?>” /> <a href=”#” class=”dodelete button”>Remove</a> <?php $mb->the_group_close(); endwhile; ?> <a href=”#” class=”docopy-types button” style=”float: left”>Add new</a> <a href=”#” class=”dodelete-types … Read more

How to get a nofication when post submitted

You could try this inside your themes functions.php: its a function by dagon design function dddn_process($id) { global $wpdb; $tp = $wpdb->prefix; $result = $wpdb->get_row(” SELECT post_status, post_title, user_login, user_nicename, display_name FROM {$tp}posts, {$tp}users WHERE {$tp}posts.post_author = {$tp}users.ID AND {$tp}posts.ID = ‘$id’ “); if ($result->post_status == “publish”) { $message = “”; $message .= “A new … Read more

What is the optimal way to filter out subpages from admin?

This works for our needs: # Parent filtering function wps_restrict_manage_posts() { global $typenow; # only run this filter on page post type if ( $typenow == ‘konverentsid’ ) { # Parent Page Filter (HTML) $args = array( ‘post_type’ => ‘konverentsid’, ‘child_of’ => 0, ‘show_option_none’ => __(‘Show all pages’), ‘depth’ => 1, ‘name’ => ‘wps_page_filter’, ‘selected’ … Read more

Multiple users editting widgets

I have never personally had this problem, but to the best of my knowledge WordPress does not have the system to support multiple users managing widgets at the same time, at least not widgets in the same widget areas. Is it a problem to just have one user at a time manage the widgets? I … Read more