add filter to “quick edit menu” in wordpress admin

You do not want to reference the global $post, but the post that is given to you as one of the argument. You simply need to remove global $post; Remember also to sanitize input and prefix function names. function wpse50651_filter_transition_post_status( $new_status, $old_status, $post ) { global $wpdb; $wpdb->query( $wpdb->prepare( “UPDATE my_table SET post_status=%s WHERE post_id=%d”, … Read more

pagination hook doesn’t work with search results

I think your problem with pagination. Use this code and css. <?php function pagination($pages=””, $range = 4) { $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == ”) { global $wp_query; $pages = $wp_query->max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo “<div class=\”pagination clearfix\”>”; if($paged > … Read more

Converting multiple loops into one single loop with pagination

You can refer this. Use the examples part. Inside the foreach loop put your all the code which needs to be repeated for each category type. something like: <?php $categories = get_the_category(); if($categories){ foreach($categories as $category) { $my_query = new WP_Query(‘cat=$category->term_id’); //code to display category posts goes here } } ?> You are ready to … Read more

Query posts from different categories in multisite

For restricting the categories, maybe the plugin Restrict Categories can help. But it doesn’t have Multisite capabilities. Take a look at the filter list_terms_exclusions that it uses in the cat_filter function. But Role Scoper states that it has “Extensive WP-mu support”. May be worth a try. For the query part, take a look at this … Read more