It’s possible to hide body copy box for a custom post type?

There is a built in WordPress function for this, remove_post_type_support http://codex.wordpress.org/Function_Reference/remove_post_type_support . In your case you could use something like add_action( ‘init’, ‘my_custom_init’ ); function my_custom_init() { remove_post_type_support( ‘custom_post_type_name’, ‘editor’ ); }

How can I list Custom Post Types created with the Types plugin under categories?

By default, category and tag archives only list Posts in that category. So, despite the UI appearing on the backend, the posts don’t show up in the archives. Luckily this isn’t too hard to solve. Look at this support thread and this answer in particular. It has resolved this issue for me in the past. … Read more

Archive for custom taxonomy lists all posts instead of current taxonomy

You have a syntax error in your query. According to the documentation for WP_Query, tax_query is an array of arrays of parameters, which is to say that it should probably look like this: ‘tax_query’ => array( array( ‘taxonomy’ => ‘semester’, ‘field’ => ‘slug’, ‘terms’ => $getterm, ‘include_children’ => true, ‘operator’ => ‘IN’ ), ),

Query custom post type by custom field

You got it pretty close. Here’s a working example of what you’re trying to do: class Wpse_126374 { public function __construct() { add_action( ‘init’, array( $this, ‘rewrites’ ) ); add_action( ‘pre_get_posts’, array( $this, ‘pre_get_posts’ ) ); } public function rewrites() { add_rewrite_tag( ‘%parent_id%’, ‘(\d+)’ ); } public function pre_get_posts( $query ) { // Don’t run … Read more

Display custom post type and custom fields within a Bootstrap Carousel

I’ve found that for things like this, get_posts is easier. <?php // Set up your arguments array to include your post type, // order, posts per page, etc. $args = array( ‘post_type’ => ‘testimonial’, ‘posts_per_page’ => 3, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’ ); // Get the posts $testimonials = get_posts($args); // Loop through all … Read more