Pagenavi Plugin and Custom Post Type – Multipage results

you are quering the same posts over and over, and that is way you are getting the same posts, to fix it just add ‘paged’ => get_query_var(‘paged’) to your query arguments, so change: <?php $portfolioloop = new WP_Query( array( ‘post_type’ => ‘portfolio’, ‘posts_per_page’ => 12 ) ); ?> into: <?php $portfolioloop = new WP_Query( array( … Read more

My custom posts that are assigned to categories, are not called on a category search using a Category Menu

Category archive by default it search for posts and not your custom type, you need to tell WordPress to search for your custom type, paste this code in your theme’s functions.php file: function cpt_Search_category_Filter($query) { $post_type = array(‘post’,’business_sold’); if ($query->is_search || $query->is_category) { $query->set(‘post_type’, $post_type); }; return $query; }; add_filter(‘pre_get_posts’,’cpt_Search_category_Filter’); and you should be fine.

How do I “trash” a custom post type post while logged in as Admin

Might you need one of these Admin capabilities? delete_others_pages delete_others_posts delete_pages delete_plugins delete_posts delete_private_pages delete_private_posts delete_published_pages delete_published_posts Unless you’ve modified the default capabilities for Administrator, to remove one or more of these capabilities, you should be able to delete any Post (of any Post-Type) as an Admin user.

How to query custom post types with multiple keys?

Here is example from Codex on using BETWEEN with new format of meta query, which covers multiple fields as well: $args = array( ‘post_type’ => ‘product’, ‘meta_query’ => array( array( ‘key’ => ‘color’, ‘value’ => ‘blue’, ‘compare’ => ‘NOT LIKE’ ), array( ‘key’ => ‘price’, ‘value’ => array( 20, 100 ), ‘type’ => ‘numeric’, ‘compare’ … Read more

Custom Post types and their corresponding theme files

When you register custom post in functions.php add this ‘has_archive’ => ‘book-list’ and then your archive-business_sold.php will work See this article for details http://www.wpmods.com/wordpress-3-1-custom-post-type-archives Or just use plugin (for example http://wordpress.org/extend/plugins/simple-custom-post-type-archives)