Category “same post” retreive and display

# according to your example: $categories = array ( ‘sit’, ‘leather’, ‘one person’ ); # get all id’s by the category names foreach ($categories as $category_name) { $category = get_term_by( ‘name’, $category_name , ‘category’ ); $ids[] = $category->term_id; } # get all posts for the categories query_posts( ‘cat=”.join(“,’,$ids) ); Sorry, I cannot test it right … Read more

Using call_user_func() within add_settings_section() within a Class

Hi @Loni Huff: Your Code, Reformatted: It appear you are trying to call your callback with call_user_func() instead of just passing it. Reformatting your code, this is what you have: add_settings_section( ‘expansion_’ . $row->expansion_id, ”, call_user_func(array(&$this, ‘display_expansion’), $row->expansion), ‘warpress_progression’ ); // PROBLEM SEEMS TO BE HERE Equivalent to Your Code: Which is basically the same … Read more

WordPress plugin isn’t loading completely

Muzzamil – I have looked at your site and it appears you running an outdated plugin which could be possibly causing you the problem. Sexy Bookmarks, Sidebar Login, WP Page Navi and Count Per Day state that they are WordPress 3.1.1 compatible (although one of them hasn’t been updated in over a year). However, Syntax … Read more

Favorite recent post widget

You can create a widget (Create a Widget) like this: <?php /* Plugin Name: WDG Plugin URI: Description: Plugin Version: 0.1 Author URI: */ add_action( ‘widgets_init’, ‘my_wdg’ ); function my_wdg() { register_widget( ‘Wdg’ ); } class Wdg extends WP_Widget { function Wdg() { /* Settings of widget */ $widget_ops = array( ‘classname’ => ‘Widget’, ‘description’ … Read more

Automatic WordPress Backup Plugin works, but says it’s not

The plugin’s description in repository says following: Important caveat: this plugin currently has to be run on a linux server. Also, the wp-content/uploads folder has to be server-writable or it won’t be able to create the zips for backup. …which makes me think that developer was not too interested in making plugin use proper WP … Read more