You need to check the information that their is in action variable.
$action = (isset($_REQUEST['ac'])) ? $_REQUEST['ac'] : 'none';
var_dump("action: "+$action);
With this line, you will be able to review it’s content and you will see that you don’t get the correct information.
I guess that your dev database is out off synch with your local one.
So, you need to create post/page/categories to review your code.
Otherwise, I’m using a really nice plug-in to migrate your local to dev DB.
Note: don’t forget to push your uploads too =)
Related Posts:
- Displaying custom post type on category pages but not on blog listings
- Showing posts from different categories and from custom post type
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- How to change permalink structure for custom post type and it’s taxonomies?
- Filtering a custom post type by custom taxonomy in archive template
- How to build a complex page structure
- Load custom posts with same tag as page
- Hide/Show only specific categories in wp-admin new-post.php
- Get categories for a specific post – Custom post type
- Include custom post types in categories widget
- Meta Query “IN” doesn’t work with ACF checkbox filter
- How to get dynamically custom post type that are under a certain category
- How Do I Use WP_Query to Run This Database Query as Search Result?
- Template tags to display custom post type posts in category template?
- 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
- New WP_query in template not working with CPT+category on some pages
- WP Query group/order by category name
- Taxonomy list. Order by a specific custom post type count
- How to show custom taxonomy in the permalink?
- Custom/separate categories for custom post type
- Loop through categories and create tab for each
- Categories not working as expected with custom post type
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- Query custom post types
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Custom Post Types and Categories?
- Get categories and descriptions from custom post type
- Custom search for custom post meta with pre_get_posts interferes with WP search
- How to sort custom post type posts in default order by multiple fields?
- How to create new category for custom post type?
- Should I use custom taxonomy or custom post type
- How to show CPTs in term archive
- Group posts by custom post type
- How to modify archive query with pre_get_posts to append CPTs?
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Get parent categories of custom post type
- Advanced or not so advanced pre_get_posts query
- How to query_post custom posts within default taxonomy?
- Custom Post Type With Categories
- Categories of custom taxonomy don’t show any posts
- Can’t remove front from permalinks for custom taxonomy category page
- Adding custom post type to count in category
- Custom Post Slug same as Parents Category Slug
- Pre-selecting the category for a custom post type
- browse by category and tags?
- List of Posts and Categories
- category page for custom post type
- Getting used tags per 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?
- Prevent A Specific Custom Post Type Showing In WP Search Results Page
- Unable to edit categories in custom post type
- Custom Post Type Category URL
- Custom Post Type Categories URL not displaying posts
- WP Query results showing posts outside of category ID
- Restrict category access to specific users/groups. Author always has access
- How to get Custom Post Type with Categories wise in WordPress using wp_query
- Better approach for a WordPress Inventory
- Showing all posts and custom post types by using one category
- get_terms() parent, child and grandchild
- Custom Post Type Custom Archive Page Not Working
- How to properly use Categories with Custom Post Types
- pre_get_posts works in post type archive but not in single post
- 4 posts per page from single category
- Menu’s breaking, now showing all page links on site
- Retrieve Custom Taxonomies with Description and Slug
- Custom post type category permalinks and archive pages
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- Display custom post types by category
- Order posts by taxonomy terms
- How to set “section categories”?
- Cannot use object of type WP_Error as array display category
- How to show posts of the same category on a page?
- Cannot get to work tax_query array for terms
- List all posts associated under custom taxonomy
- Page + Custom Post Type with same category
- Loop through a specific parent category
- Query the title of the page to show posts with matching category in the loop
- What’s the most efficient way to get two queries based on an if statement?
- How to Show all Values in category.php page using post_type
- How To Display Category list from Portfolio post type plugin?
- Can’t seem to filter wp_query by current category ID
- Dropdown switching subcategories portfolio
- Custom post type URL – filter by taxonomy
- 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?
- Custom Post Type – Admin Columns
- Adding custom post types to the default loop, yet only posts that has terms from the core taxonomies
- Category / Custom Post Type permalink issue
- Categories in custom post types
- Limit to add one post per category only
- Sorting custom post types by category?
- Categories and page filtering with pre_get_posts
- How can I sort posts ascending by post title for a specific post type, but on a category archive template?
- Get all custom_post_type posts + blog posts from one category in a single query
- Select Category as Page Parent
- Is it possible for post and custom post type to share a category base slug?