Custom post types with wp_query in 3.8
-
After upgrading to WordPress 3.8 from 3.7.1, a wp_query I made to fetch a custom post type stopped working.
I registered a custom post type, “portfolio,” and used a plugin to change a bunch of existing posts to the new custom type. Originally to get this query to work I had to include the category ID they were originally in before I changed their type.
I’ve tried running the query without the category and nothing is returned.
$port_query = new WP_Query( array("post_type" => "portfolio", "cat"=>3, "showposts"=>12, "orderby" =>"rand") ); while ($port_query->have_posts()) : $port_query->the_post();Thanks in advance for offering any assistance.
-Andrew
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Custom post types with wp_query in 3.8’ is closed to new replies.