Problems with pagination for a custom post type

Store your new WP_Query() in a variable Globalize $wp_query Move the $wp_query swap-hack to after your new WP_Query() generation Pass the variable to $wp_query, not the new WP_Query() call itself. e.g. <?php // Custom query args $press_query_args = array( ‘post_type’ => ‘press’, ‘orderby’ => ‘post_date’, //’showposts’ => ’10’, ‘posts_per_page’ => $paged, ); // Custom query … Read more

How do I do this?: If custom post type exists, echo it, else do not

No need to be that complex, you can use the has_post_thumbnail function <?php if(has_post_thumbnail()): ?> <a href=”https://wordpress.stackexchange.com/questions/35217/<?php the_permalink(); ?>”><img src=”<?php bloginfo(url); ?><?php echo get_post_meta($post->ID, ‘featured-image-large’, true); ?>” title=”<?php echo get_post_meta($post->ID, ‘featured-image-title’, true); ?>” /></a> <?php endif; ?> et voila! =)

Show one of the taxonomies always as default

$tax_slug = ‘departments’; $tax_term = ‘first-department’; // get taxonomy by slug and term $tax_args = array( $tax_slug => $tax_term ); // merge your args, with the tax args $args = array_merge( $args, $tax_args ); // Get term object $term_title = get_term_by( $tax_term, ”, $tax_slug ); // Display Title/Headline echo “<h2>{$term_title->name}</h2>”;