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
- Adding categories to custom post type in permalink
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the first post term
- How to show all posts of the category in wordpress?
- WP_Query by a category id and a custom post_type
- Filtering a custom post type by custom taxonomy in archive template
- Prevent pre_get_posts filter on specific post type
- Why are posts from custom post type not displayed in “category” archive?
- Add Category Taxonomy Support to Custom Post Type
- Exclude a category from WP_Query
- Get category id from post id of a custom post type
- Custom Post Types on Category Pages
- Displaying category archive of custom post types
- Adding Categories to a WordPress Custom Post Type?
- Setting Default Category for Custom Post Type Upon Autosave
- Creating “static” taxonomies to choose from, inside custom post type?
- How to display regular posts & custom post types that fall under a category using just the generic category template?
- $query->set in pre_get_posts is unintentionally affecting the backend
- How can I list all the categories under a Custom Post Type (taxonomy)?
- How to build a complex page structure
- WP_Query ignores post_type in category view
- Add category to custom post URL
- How to put custom post types on front page
- Only list categories that contain posts of a specific custom post type
- Custom Posts Types using Posts Category
- Load custom posts with same tag as page
- How to filter custom post types by custom category taxonomy
- Hide/Show only specific categories in wp-admin new-post.php
- Is there a way to use regular categories with custom post types?
- Add Custom Post Type to Current Query
- How to show more posts on an archive page?
- How to list all categories and tags in a page?
- Include post id[s] into WP_Query()
- Pre get posts for single post
- category__in not working on custom post type
- Pagination not working with custom category template
- How to get my Custom Post Type to display in Recent Posts using “pre_get_posts”
- Get categories for a specific post – Custom post type
- remove support for ‘Categories’ for a custom post type
- Remove date and category filters when editing custom post types
- how do I group content in magazine-style ‘issues’?
- Pre_get_posts Gives 404 on Custom Post Type
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- Glossary with Custom Post Type
- How can you make permalink work for custom post type and taxonomy?
- Include custom post types in categories widget
- Custom-Taxonomy as categories: Remove “most-used” tab?
- filter search result with custom post type meta key
- Order posts by (hierarchical custom) taxonomy terms and term children
- Filter get_categories() for taxonomy term in WordPress
- Categories assigned to custom post type not found
- How to get a list of term names of the custom post type im currently on in single.php
- Meta Query “IN” doesn’t work with ACF checkbox filter
- Use standard WordPress categories with a CPT
- 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?
- Anyway to assign custom post types to a specific category?
- List with categories, subcategories and posts of custom posttype
- Template tags to display custom post type posts in category template?
- Add filter to wp_list_categories and query what type of taxonomy-terms it use?
- Regex problem in an add_rewrite_rule
- Limiting number of custom posts shown on taxonomy page
- Include custom post type in “all posts”
- Listing and accessing categories for a custom post type
- How to show related posts by category or custom post type?
- Categories or Custom Post Type to Organize Content
- wp_list_categories and custom post types
- How can I add single catogory for custom post type?
- On clicking on the category name the page is redirecting on 404 pge
- Hook onto Add New Category
- Custom Post Type, Two categories, Two columns with Pagination
- Structuring a product catalogue in WordPress [closed]
- Can’t sort order of wp_query with 2 meta keys
- New WP_query in template not working with CPT+category on some pages
- Sort custom post types by last name in the backend
- Custom edit post column – category not showing
- WP Query group/order by category name
- Automatic category for a Custom Post Type
- Get the post_type of current taxonomy or category page
- Taxonomy list. Order by a specific custom post type count
- Custom post type with tags
- How to show custom taxonomy in the permalink?
- Change / Delete the default post type and category?
- List all custom post type posts from a given category?
- How to customize the Categories meta box to allow only one category?
- pre get posts changing the query
- Restrict categories to a custom post type
- Custom post type taxonomy template
- Categories and Tags not working!
- Custom/separate categories for custom post type
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- WP_Query with custom post_type and cat retrieving unwanted posts with the custom posts
- How can i list custom post type categories?
- Query Custom Post by Category
- Is there a way to list posts of only a certain category
- Taxonomy structure of Sport site
- Loop through categories and create tab for each