is this a bug or not?

No it’s not a bug. Pages are effectively a Post Type and so is your Custom Post Type. So assuming you created a Page called news but then you declared a new CPT also called news then WordPress can’t determine which is correct. To explain this another way, if you were to create a page … Read more

display custom post type from register taxonomy

First off, I’d like to note a few things wrong with your Post Type and Taxonomy set up. There’s a few settings in your $labels that don’t make sense: $labels = array( … ‘post_type’ => ‘attachment’, ‘post_parent’ => $post->ID, ‘post_status’ => ‘inherit’, ‘post_mime_type’ => ‘image’, ); These last 4 options don’t make much sense ( … Read more

Post count for particular term

Your query is completely wrong. You should use a proper tax_query. Also note, your query is quite expensive to run to just count posts. Set the fields paremeter to only return post ID’s. This saves up to 99.9% on resources. Just a note, the field parameter inside a tax_query is important. The valid values are … Read more

Custom Post Type to Plugin

i agree with the other answers, but neither addressed flushing the re-write rules. If you don’t add this, it will confuse your users when they activate the plugin and still can’t access the custom postypes on the front. The other problem you’re going to have is that LOTS of people will use testimonials so if … Read more