My child theme inlcudes php as well as css files. Whenever I switch to a different theme for mobile browsers it works but the custom post types, cats etc are missing in action. I am kind of lost.
Your problem is that you’re doing too much with the theme. Themes are all about presentation, not about functionality. If your child or parent theme is defining a custom post type (as I infer from your question), then you’re doing it wrong.
When the mobile plugins serve up a different theme for your site, they ignore the main theme for your site entirely. That means no CPT support on the mobile side unless you rewrite the mobile plugin yourself.
So, instead, spin off your CPT definitions into a plugin so that they’re still available to the mobile version of your site.
Related Posts:
- Change slug of registered custom post type in child theme
- Custom post types and child theme
- Add pre-existing meta box to new custom post type
- How to remove thumbnail sizes for specific post type on a child theme?
- Change labels of custom post type via child theme
- Create a post in custom post type using field in registration form after users submit form
- Need help targeting a custom post type with conditional tags
- Plugin: register custom post types, child ready and performance best practices
- making available just some parts of theme option
- Rewrite post type slug only for child theme
- How do I amend the have_posts function to include custom posts?
- Don’t know how to show custom taxonomies from a custom post_type
- Custom shortcode works in Elementor editor but not on frontend
- why post_class() function apply css classes to all other files?
- Child theme blocks post from publishing [closed]
- Changing CPT slug and taxonomy already registered in parent theme
- Overriding Plugin Function in Child Theme
- Removed custom post type archive page shows blog page
- What happens to my older posts if I switch to a child theme?
- How do I add new post formats to twenty fourteen theme?
- How to create a archive template for custom post type [duplicate]
- Extend Custom Post Type
- Insert custom fields to a custom post type
- Get only parent post in archive post
- In child theme, add CPT to custom taxonomy registered in parent theme
- Auto generate excerpt from ACF field on a CPT that does not support excerpt or content
- How to use POST method using custom wordpress button?
- custom post type does not working when adding in child theme function
- Child Theme problems
- Cannot modify a registered custom post type rewrite slug
- Custom Post Types and Child Themes!
- Having some trouble properly displaying Custom Post Types in templates
- How to add a custom post type in child theme? (WordPress > 3.0)
- How do I use CPT and permalinks with a mobile theme?
- Test if a Category contains certain Custom Post Types
- How can I show template dropdown in custom post type?
- ACF Pro simple Business Directory – Requesting assistance with created Templates and associated Functions.php Coding
- help
- Why won’t this jQuery code work?
- Custom post type’s extra fields – how to handle?
- Is there a way to exclude posts based on meta_values?
- What is the ID parameter for custom post types in query_posts?
- Loop for custom post types filtered by a taxonomy
- Number of posts in the archive
- custom post data – how to
- calling categories in a custom post type
- Custom post_type search pages
- Ordering Submenu Pages in WP 3.1
- How can i link a custom post type thumbnail to intermediate size
- Including link to custom post type in ‘wp_list_pages’ function
- 404 Error on form submission within custom post type
- More quicktag driving me nuts
- Query of custom post types only shows first post
- Custom query for custom post_type
- Creating tags via API
- Adding custom field values to wp_list_pages
- Custom post types or not custom post types?
- Save Multiple Metabox values
- Call to a member function add_rewrite_tag() on null on register_post_type [duplicate]
- I don’t understand why use array inside the add action hook to create custom post type using object oriented way
- Query multiple taxonomies with pre get posts
- Enable taxonomies by post type in an array of CPTs
- Delete “Post Published. View Post” for custom post type
- Main menu not appearing in custom post type archive
- How to add/edit advanced custom fields on custom post type’s WordPress REST API?
- Relationship between set rewrite flag in register_post_type and add_rewrite_rule
- What’s the name of the custom post type yearly archive template?
- How to query 2 custom post types that need to share a slug?
- Slug for custom post type
- Custom Post type: Labels are not showing
- Get rid of “trash can” for custom post type
- Combine multiple getEntityRecords calls
- Custom post type editor uses old tinyMCE
- Checking if looped item has a parent inside a shortcode
- How to assign tag to custom post type in wordpress?
- Do posts, pages and / or custom post type objects have unique ID numbers or can there be multiple objects with the same IDs?
- Send a conditional email notification when a custom field value changes in Post Type
- Pagination custom post type not working with rewrite slug
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- Check for a specific taxonomy of a custom post type
- Recoverable Fatal Error – Object of class WP_Post could not be converted to string
- Custom Post Type Slick Slider “$ is not a function”
- Get parent category id from child category page for custom taxonomy
- Make custom post type a media library
- Trying to get custom post of a custom taxonomy
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Custom post type menu-icon not showing up
- Querying & displaying custom post type into an existent page [closed]
- WordPress custom post type capabilities issue
- Querying two taxonomies with tax_query not woking
- i cant see the max_num_pages of a custom wp query
- Enable Custom Fields For Custom Post Type When CPT Created Using Plugin
- How to get all post of custom post type by rest api?
- How can I group posts by months and years?
- Custom post type, global categories — what’s the template name?
- Custom rewrite to fetch feed data
- Rename a slug label
- Convert post type to another
- Pagination Error : Duplicate argument being outputted
- Create custom post with meta field with AJAX and the WordPress REST API