“Order” doesn’t work in custom loop?

Add orderby clause to your query! Here is the complete list of order parameters $loop = new WP_Query( array( ‘post_type’ => ‘images’, ‘orderby’ => ‘menu_order’, ‘paged’ => get_query_var(‘paged’) ? get_query_var(‘paged’) : 1, ‘posts_per_page’ => $per_page, ) ); This query order by the menu order that you have specified in your pages

new post-type how do i retain the plugins on my sidebar?

The plugin would need to support custom post types. You might be able to ask the plugin developer to add that. The custom post type API’s are fairly new and still don’t have widespread support. You can see that they are adding the meta boxes only for posts and pages: add_meta_box( ‘WPPostsRateKeys-Keyword’, ‘SEOPressor Keyword’, array(&$this,’add_box_in_post_form’), … Read more

Conflict in function to allow single post template based on category

You can check for your post type single-{post-type}.php first try this: /* Define a constant path to our single template folder */ define(SINGLE_PATH, TEMPLATEPATH . ‘/single’); /* Filter the single_template with our custom function*/ add_filter(‘single_template’, ‘my_single_template’); /* Single template function which will choose our template*/ function my_single_template($single) { global $wp_query, $post; /* Checks for single … Read more

Retrieve posts by author

You must specify the author parameter as described here. Try to use: $args_my_items = array( ‘posts_per_page’ => 10, ‘post_type’ => ‘mycustomposttype’, ‘author’ => $current_user->ID ); query_posts($args_my_items);