Using categories isn’t the same as using a custom taxonomy. You should adapt your code to use get_terms
and to query for your custom tax:
$categories = get_terms('article');
foreach($categories as $category) {
$args=array(
'article'=>$category->slug,
'post_type' => 'journal',
'post_status' => 'publish',
'posts_per_page' => -1,
'caller_get_posts'=> 1);
}
Related Posts:
- How to show all posts of the category in wordpress?
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- How to query_post custom posts within default taxonomy?
- Show a Category X’s custom post type on Category X archive page?
- How to edit this code to get the categories in achieve page?
- Category with post type pagination returns 404
- 4 posts per page from single category
- Custom post type archive page filters
- Query the title of the page to show posts with matching category in the loop
- Display 2nd category, only once, as sub-heading, in the loop
- How do I query a custom post type with a custom taxonomy?
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the ID of the latest post
- Filtering a custom post type by custom taxonomy in archive template
- How to build a complex page structure
- Only list categories that contain posts of a specific custom post type
- Load custom posts with same tag as page
- Hide/Show only specific categories in wp-admin new-post.php
- Display Custom Post Type Fields
- Get categories for a specific post – Custom post type
- Include custom post types in categories widget
- How to get dynamically custom post type that are under a certain category
- How to get the parent’s taxonomy?
- Listing and accessing categories for a custom post type
- How to show related posts by category or custom post type?
- Custom Post Type, Two categories, Two columns with Pagination
- ascending order custom post type
- New WP_query in template not working with CPT+category on some pages
- Taxonomy list. Order by a specific custom post type count
- How to get only one category of custom post type?
- Custom/separate categories for custom post type
- Categories not working as expected with custom post type
- How to display recent posts added in several custom post types
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Get categories and descriptions from custom post type
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Custom query shows custom post types in trash
- How to create new category for custom post type?
- How to show CPTs in term archive
- Group posts by custom post type
- Query/list all terms and their custom post count
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- get custom post type
- Categories of custom taxonomy don’t show any posts
- Can’t remove front from permalinks for custom taxonomy category page
- Polylang non-default language ignores tags in WP_Query
- Adding custom post type to count in category
- Pre-selecting the category for a custom post type
- List of Posts and Categories
- Custom post type archive page for multiple post types
- How to display Related Posts based on number of taxonomy terms matched
- Create new custom post and post category of same name
- category page for custom post type
- Getting used tags per post type
- multiple custom post type on category page
- How to limit post per page of custom post type?
- Why does accessing url by category cause issues with post types?
- Navigate posts with different post type that are in the same categories
- Why does my taxonomy have a category style div id?
- Pagination not working on custom query on a page
- Unable to edit categories in custom post type
- Restrict category access to specific users/groups. Author always has access
- How to get the current category with custom posts
- How to get Custom Post Type with Categories wise in WordPress using wp_query
- get_terms() parent, child and grandchild
- Best way to create a search for custom post type by custom field values
- Custom Post Type Custom Archive Page Not Working
- List child categories from parent category on custom taxonomy page
- HM CMB: Post Select Field for CPT ID
- Menu’s breaking, now showing all page links on site
- Display Posts Query with IF function
- Retrieve Custom Taxonomies with Description and Slug
- Getting custom post type info using get_adjacent_post
- Why can’t I query more than 1 post type at a time?
- How to display custom taxonomy term specific post?
- Limit custom post type to the authors only on front-end!
- How to set “section categories”?
- Cannot use object of type WP_Error as array display category
- Order Posts in Custom Order
- Cannot get to work tax_query array for terms
- Page + Custom Post Type with same category
- Modify the category post counting function
- Loop through a specific parent category
- How to Show all Values in category.php page using post_type
- How to Create movie schedule by custom post type query
- Main site single-property.php design, as homepage of a multisite
- Can’t seem to filter wp_query by current category ID
- Custom post type URL – filter by taxonomy
- How to get main div html to print a list of posts inside?
- How to query all custom posts of a certain type and checking what category they have
- Post Editor: display categories from current post type taxonomy only?
- Problem to show custom post type in archive page category wise
- Category / Custom Post Type permalink issue
- Categories in custom post types
- Sorting custom post types by category?
- Categories and page filtering with pre_get_posts
- Get all custom_post_type posts + blog posts from one category in a single query
- Inserting two categories
- Select Category as Page Parent
- How to exclude certain portfolios from a loop