I see a few things that may be causing problems.
To answer your question though, this line:
$loop = new WP_Query( array( 'post_type' => 'subjects', 'posts_per_page' => '3' ) );
is performing a query on a post type called “subjects”.
I think you want to be pulling your quizzes. So the line should be:
$loop = new WP_Query( array( 'post_type' => 'quiz', 'posts_per_page' => '3' ) );
I’d go through and check capitalization as well. When you registered your post type you called it “Quiz”, but later referred to it as “quiz”. It should be lowercase. You did this as well when you changed the CPT slug.
Related Posts:
- How to Add Custom Taxonomy To Woocommerce Plugin
- How to completely disable a taxonomy archive on the frontend?
- register_taxonomy with multiple object type and update_count_callback
- Custom Taxonomy and tax_query Issue?
- How to List Thumbnails based on Custom Categories
- Custom Taxonomy Not Showing in Menu
- Set object terms not working on plugin activation
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- get_object_taxonomies() returns empty array for custom post type
- Adding a custom post type taxonomy template in plugin
- How to add a custom taxonomy to show up in a custom post type menu?
- What is the best practice for displaying my plugin content in themes?
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- Plugin fatal error
- Custom post type’s extra fields – how to handle?
- Main query not querying any posts in custom taxonomy template
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- Dynamically insert code to custom post type loop
- Show current custom taxonomy
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- Most viewed post of custom post type
- Writing a custom Glossary plugin
- Custom post type page with parameter
- Custom post type category link redirecting to 404 page
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Why are custom taxonomies only appearing on the edit page of one of these types, but not the other?
- Error 404 change permalink term custom term taxonomy
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Changing CPT permalink
- I have a random letter appearing before my content. Where to start looking for the cause?
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- Insert custom taxonomy into category query
- % encoded URL giving 404 error in WordPress
- Which File Populating CPTs in Slug URL
- Not Able to List CPT Based on Taxonomy Term
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- Associate custom categories to different user IDs
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Render custom taxonomy query as single template
- Custom Taxonomy Showing in WP Menu
- Get term_id for each instance of custom taxonomy
- How to internationalize the sub menu name “categories” in Custom post type?
- Issue on Adding Taxonomy to Custom Post Type Using Function
- Custom Post Type urls not working
- How to filter custom post data with AJAX?
- Make term slugs of custom taxonomy available in WP REST API for custom post type?
- How to get the posts of a custom taxonomy term
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- Remove Trash / Delete option for Custom Post Type / Taxonomy
- remove support for ‘Categories’ for a custom post type
- How to select one major category (or custom taxonomy) for a custom post type?
- Custom taxonomy & post slug permalink
- Child and grandchild taxonomy listings – 404
- Limit taxonomy results to a single cpt
- Display custom taxonomy as dropdown list
- Automatically Add a Category to a Custom Post Type
- Custom Permalink Tag breaks Pagination
- Relationship between two taxonomies and a custom post type [closed]
- next_post_link on custom taxonomy
- Change Permalink Structure for Tag.php template
- CPT UI change custom taxonomy url
- Show posts from two or more custom taxonomy terms
- How can I make the slug of the taxonomy also the slug of the custom post
- Add Custom Post type menu to another menu in specific location
- How to list custom taxonomies in the back end
- How do I display the grand child items of a taxonomy term?
- How to get custom posts sub category link
- Top Level pages in wordpress giving 404, but child pages working fine
- Problems wp_insert_post and save_posts filter
- Query posts with double taxonomy
- Loop to display custom post type from a custom Taxonomy
- Getting 400 Bad Request on AJAX Call
- category list with cutom post count
- Add to ‘action’ within post.php to allow more actions when editing a Custom Post Type in a plugin
- Custom post type and taxonomy cross registration [duplicate]
- How to create a template to show child terms of a MAIN taxonomy
- How do I add new post formats to twenty fourteen theme?
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- Custom archive page for custom taxonomy and pagination issue
- Ordering by meta value not working
- Need to edit author permissions | custom taxonomy
- Custom taxonomy, post type, and URL permalink structure
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- Order custom post type by taxonomy
- WordPress Custom Taxonomy – If not parent term
- WP_List_Table Inside Metabox Not Working on Clicking Search Button
- How to change URL structure for custom post type in wordpress? Custom taxonomy + custom Post name [duplicate]
- Custom taxonomy with custom post type template not showing
- Loop to display parent categories in custom taxonomy
- Add an array as post content dynamically
- Filter Term By Parent Term – Custom Post Type
- CPT Efficient way to display posts from different categories with custom query
- redirect old post type url to new structure url
- Display and Allow users to edit their own profiles
- Advanced search form with filters for custom taxonomies and custom fields
- Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- Problem with shortcode