I figured it out! For anyone having the same problem, I solved it by adding
$cat_id = get_query_var('cat');
query_posts("post_type=company&cat=$cat_id");
right in front of the loop. Anyone having the same problem would probably also benefit from looking at this, too.
Related Posts:
- Load custom posts with same tag as page
- How to get a list of term names of the custom post type im currently on in single.php
- Return array of categories to php function for current post
- Get Post Primary Category
- Weird problem happening with custom taxonmy when creating/updating posts
- Get posts from a custom post type by child categories of a parent category
- Get parent categories of custom post type
- Make a custom_post translatable
- WP_Query Custom Post Type if Category ID Equals
- Assign category a default post type
- Assigning a category to a custom post type in WordPress
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Menu’s breaking, now showing all page links on site
- Show the categories the current post has
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Custom front-end form for adding post – Category problem
- In the php, how can I have a category of a custom post type display?
- Get meta values from parent post and save in child post
- Custom Post By Category
- can’t see categories in appearance-menu-categories
- How to call Shortcode categories for custom post types?
- Stop header code from showing in category page?
- Add Category names to post lists of custom post type
- Loop through posts of a custom-post-type (event) and create .ics (iCal) file?
- Custom Post Types and Categories?
- Output custom post shortcode. Help spot the error.
- How to count custom post types with conditional operators
- Set a default category – if the user didn’t select one- before creating a post
- Get categories and descriptions from custom post type
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Combining custom post type and post category
- Possible for Category Base and Custom post Type to share the same slug/permalink?
- WP_Query is printing out only one post when posts_per_page is set to multiple
- WP Query to displaying date and posts for that date?
- GravityForm: Populate Dropdown with custom post type [closed]
- Link users to a custom post type
- Create a random unique 6 digit number as custom field for custom post type
- How to output wordpress custom tags separated by comma?
- Multiple custom post type loops in category.php
- Loading all files within a directory
- Querying Term Posts in Loop
- Blog page showing same content as homepage
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- How to create new category for custom post type?
- Using several custom fields as custom post title
- Custom Post Type without an archive page
- Get rewrite slug of custom post type in template
- Show Different Header on a Specific Post ID
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- Add category in post type dynamically
- Filter categories of posts with checkboxes
- Admin notice not displaying
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- Can’t get order_by meta_value_num to work properly
- Use post as category
- Create custom post type on successful woocommerce order [closed]
- How to get the post type from a category id?
- How to add custom post types to normal category pages
- Pagination on category page with custom post types
- Adding custom tables to WordPress
- Insert HTML inside link in a walker
- Custom Post Types and independent Categories – complex Taxonomy
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Call custom post type by category
- Add category attribute to custom shortcode
- Use regular category with custom post types
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Very Slow Page – How to Optimize # of Queries?
- Dynamic page outside WordPress
- Should I use custom taxonomy or custom post type
- How to detect filter in URL in Category page?
- Set menu active state for custom posttype and category, given custom taxonomy term
- Using wordpress template tags within an array
- How to display Custom Post Type Post based on Tag with Shortcode Parameter?
- Getting the URL of the parent page
- How to show CPTs in term archive
- Custom query to filter posts that have current post as a taxonomy [closed]
- How to change post featured image using a custom field of category?
- Custom post type permalink returns bad url
- Return the thumbnail meta data for getter and setter
- CPT Archive with core Category
- How to display selected taxonomies by their parent
- Group posts by custom post type
- Custom Field Order by Last Name and First Name
- Pagination for custom php code
- get_posts of Custom Post Type AND Custom Taxonomy
- What’s the difference between same wp functions get_posts(); functions in different form?
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Display all posts in main category and 1 subcategory
- Replace li Items with divs with classes
- showing custom post types of a certain category only
- Custom Post Type Loop throws 500 error when used in widget
- how to check if custom post type column already exists?
- Linking to the most recent post in a Custom Post Type
- Custom Post Type Archive Page Filtering
- Getting posts under the custom post type ui category
- Received nothing after executing AJAX post function
- How to make sure content doesn’t display if selection is empty
- Show category ID on custom post type
- How can I auto-assign a CPT post to category in a custom taxonomy when published?