Try this:
$the_query = new WP_Query($args = array(
'post_type' => 'forms',
'tax_query' => array(
array(
'taxonomy' => 'form_category',
'field' => 'slug'
),
),
)
);
btw – Why do you have a 0 in this add_action? Remove it or change it to > 0.
add_action( 'init', 'my_taxonomies_product', 0 );
Related Posts:
- Remove slug in taxonomy url
- Pagination throws 404 error on custom taxonomy archive pages
- Select All in Parent Category, Group by Child Category?
- Registering custom taxonomy with unique name, a good practise?
- custom post type and custom taxonomy permalink
- Get page by template?
- Get custom post type by category in a page template
- Associating an “author” with a custom taxonomy
- When we register a custom taxonomy or post type, does the WP database modified at all?
- How do I create multiple post types in same menu section in WP-admin?
- Site Structure Regarding Custom Post Types and Taxonomies
- Custom SQL Query on Custom Post Type. Order by Taxonomy?
- How to Programically add to the new WordPress menus
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- What order? register_taxonomy() register_taxonomy_for_object_type() register_post_type()
- Remove base slug in CPT & CT, use CT in permalink
- Get list of terms of current taxonomy archive for another taxonomy
- Function like in_category for custom taxonomies
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- Dynamically create/remove terms in taxonomy when custom post type is published/trashed
- After deleting a post are terms, and custom meta deleted?
- 404 Error with Custom Post Types and Taxonomy
- Making pages also serve as taxonomies? Or give full pages to taxonomies?
- Show Post Count of a Category
- Menu Multiple Taxonomies
- Add Tags to custom post type
- Custom page template for category taxonomy
- Only show posts from a certain category?
- WordPress as Wishlist Application
- get_object_taxonomies() returns empty array for custom post type
- Display all posts in main category and 1 subcategory
- Customize Query for post
- Correct classes for WordPress menu items
- How can I see a list of my Custom Post Types of the last term I was in?
- How to filter wp_list_categories output with some custom post type meta query?
- Custom taxonomy rewrite give pagination 404
- Removing custom post type slug from URL
- Customize Custom Post Type URL
- Advanced search form with filters for custom taxonomies
- Custom permalink with child taxonomy terms
- Display Registered Taxonomies
- Show Custom Taxonomy title in loop
- WP the_posts() on single-cars.php get category link
- tax_query not working in template
- Custom Taxonomy Not Showing in Front-End When Outputting a Custom Post Type with WP_Query()
- Custom Post Type Dilema – How do I categorise by country?
- Custom post type’s extra fields – how to handle?
- Display custom taxonomy on my custom post type
- List Categories (wp_terms) and count posts
- Which file/template is in charge of taxonomies for custom post types?
- Custom Post Types not queried in Custom Taxonomy archives or Native archives
- Show current custom taxonomy
- CPT Taxonomy As Archive Page – Error 404
- Changing CPT slug and taxonomy already registered in parent theme
- Show post count number assigned to custom taxonomy
- List all Custom Post Type posts excluding certain Taxnomy term
- Can’t pull posts of a Custom Post Type based on the custom taxonomy of the CPT
- Conditional Statements
- Check when the post type changes, and display content
- Loop and add Specific Categories and Products Images
- Custom post type specific category box
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Get newest created custom category (get_term_by and variables) (outside Loop)
- Custom Taxonomy Taxonomies of Same Name point to first created URL
- custom post type or taxonomy, which approach is better?
- Taxonomy terms with the same name are updated between separate custom post types
- Custom Post Type with Different Sets of Post Content?
- Custom taxonomy permalink without term, redirection to CPT slug
- Add a class to a div if custom post type has specific terms?
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Custom post type paging return home page
- Basic CPT Question About Categories
- custom post type and a “sticky” position taxonomy
- Display post count for a specific month
- Custom taxonomy returns 404 even with saving permalinks
- Custom post type shortcode with taxonomy attribute not working and no errors
- Redirect Custom Post Type from Child Taxonomies
- Ajax load more inside custom post type taxonomy
- How can I get the last 5 element of this tax query?
- Add other all taxonomies as meta boxes to custom post type
- Custom post edit page permalink links to edit page rather than the post
- Create a custom wp_query from a specific custom post type with specific taxonomy
- URL with Hierarchical Taxonomies and same slug for all terms and sub-terms
- Show tags of custom post types in WordPress
- Show posts for current taxonomy
- order taxonomy alphabetical
- WordPress get all post with like in terms [duplicate]
- Custom post type archive page not showing on archive-posttype.php
- Query Pulling the same post twice
- Cannot retrieve Custom Taxonomies (Disappeared)
- Custom Post type and Taxonomy in post URL error
- Display Custom taxonomy, Child terms and posts in a template Under Specific Parent terms
- Post Editor: display categories from current post type taxonomy only?
- Exclude a custom category from a list
- Add 2 Taxonomies to Custom Post
- How to Get The Taxonomy Term in Custom Post Type Loop Inside a Wp Query
- update custom taxonomy with Ajax in edit.php file [duplicate]
- Separating a custom taxonomy from blog post-type
- How to change order of custom post types. I want Featured post to come first
- Custom Taxonomy Tags and Category using same slug